public class VkPipelineRasterizationStateCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The application can also add a VkPipelineRasterizationStateRasterizationOrderAMD structure to the pNext chain of a VkPipelineRasterizationStateCreateInfo structure. This structure enables selecting the rasterization order to use when rendering with the corresponding graphics pipeline as described in Rasterization Order.
depthClampEnable must be FALSEpolygonMode must be POLYGON_MODE_FILL or POLYGON_MODE_FILL_RECTANGLE_NVVK_NV_fill_rectangle extension is not enabled, polygonMode must not be POLYGON_MODE_FILL_RECTANGLE_NVsType must be STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFOpNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkPipelineRasterizationConservativeStateCreateInfoEXT, VkPipelineRasterizationDepthClipStateCreateInfoEXT, VkPipelineRasterizationLineStateCreateInfoEXT, VkPipelineRasterizationStateRasterizationOrderAMD, or VkPipelineRasterizationStateStreamCreateInfoEXTsType member in the pNext chain must be uniqueflags must be 0polygonMode must be a valid VkPolygonMode valuecullMode must be a valid combination of VkCullModeFlagBits valuesfrontFace must be a valid VkFrontFace valuesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – reserved for future use.depthClampEnable – controls whether to clamp the fragment’s depth values as described in Depth Test. If the pipeline is not created with VkPipelineRasterizationDepthClipStateCreateInfoEXT present then enabling depth clamp will also disable clipping primitives to the z planes of the frustrum as described in Primitive Clipping. Otherwise depth clipping is controlled by the state set in VkPipelineRasterizationDepthClipStateCreateInfoEXT.rasterizerDiscardEnable – controls whether primitives are discarded immediately before the rasterization stage.polygonMode – the triangle rendering mode. See VkPolygonMode.cullMode – the triangle facing direction used for primitive culling. See VkCullModeFlagBits.frontFace – a VkFrontFace value specifying the front-facing triangle orientation to be used for culling.depthBiasEnable – controls whether to bias fragment depth values.depthBiasConstantFactor – a scalar factor controlling the constant depth value added to each fragment.depthBiasClamp – the maximum (or minimum) depth bias of a fragment.depthBiasSlopeFactor – a scalar factor applied to a fragment’s slope in depth bias calculations.lineWidth – the width of rasterized line segments.
struct VkPipelineRasterizationStateCreateInfo {
VkStructureType sType;
void const * pNext;
VkPipelineRasterizationStateCreateFlags flags;
VkBool32 depthClampEnable;
VkBool32 rasterizerDiscardEnable;
VkPolygonMode polygonMode;
VkCullModeFlags cullMode;
VkFrontFace frontFace;
VkBool32 depthBiasEnable;
float depthBiasConstantFactor;
float depthBiasClamp;
float depthBiasSlopeFactor;
float lineWidth;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPipelineRasterizationStateCreateInfo.Buffer
An array of
VkPipelineRasterizationStateCreateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CULLMODE
The struct member offsets.
|
static int |
DEPTHBIASCLAMP
The struct member offsets.
|
static int |
DEPTHBIASCONSTANTFACTOR
The struct member offsets.
|
static int |
DEPTHBIASENABLE
The struct member offsets.
|
static int |
DEPTHBIASSLOPEFACTOR
The struct member offsets.
|
static int |
DEPTHCLAMPENABLE
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
FRONTFACE
The struct member offsets.
|
static int |
LINEWIDTH
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
POLYGONMODE
The struct member offsets.
|
static int |
RASTERIZERDISCARDENABLE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPipelineRasterizationStateCreateInfo(java.nio.ByteBuffer container)
Creates a
VkPipelineRasterizationStateCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPipelineRasterizationStateCreateInfo |
calloc()
Returns a new
VkPipelineRasterizationStateCreateInfo instance allocated with memCalloc. |
static VkPipelineRasterizationStateCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkPipelineRasterizationStateCreateInfo.Buffer instance allocated with memCalloc. |
static VkPipelineRasterizationStateCreateInfo |
callocStack()
Returns a new
VkPipelineRasterizationStateCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineRasterizationStateCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkPipelineRasterizationStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineRasterizationStateCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineRasterizationStateCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineRasterizationStateCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineRasterizationStateCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineRasterizationStateCreateInfo |
create()
Returns a new
VkPipelineRasterizationStateCreateInfo instance allocated with BufferUtils. |
static VkPipelineRasterizationStateCreateInfo.Buffer |
create(int capacity)
Returns a new
VkPipelineRasterizationStateCreateInfo.Buffer instance allocated with BufferUtils. |
static VkPipelineRasterizationStateCreateInfo |
create(long address)
Returns a new
VkPipelineRasterizationStateCreateInfo instance for the specified memory address. |
static VkPipelineRasterizationStateCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkPipelineRasterizationStateCreateInfo.Buffer instance at the specified memory. |
static VkPipelineRasterizationStateCreateInfo |
createSafe(long address)
|
static VkPipelineRasterizationStateCreateInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
cullMode()
Returns the value of the
cullMode field. |
VkPipelineRasterizationStateCreateInfo |
cullMode(int value)
Sets the specified value to the
cullMode field. |
float |
depthBiasClamp()
Returns the value of the
depthBiasClamp field. |
VkPipelineRasterizationStateCreateInfo |
depthBiasClamp(float value)
Sets the specified value to the
depthBiasClamp field. |
float |
depthBiasConstantFactor()
Returns the value of the
depthBiasConstantFactor field. |
VkPipelineRasterizationStateCreateInfo |
depthBiasConstantFactor(float value)
Sets the specified value to the
depthBiasConstantFactor field. |
boolean |
depthBiasEnable()
Returns the value of the
depthBiasEnable field. |
VkPipelineRasterizationStateCreateInfo |
depthBiasEnable(boolean value)
Sets the specified value to the
depthBiasEnable field. |
float |
depthBiasSlopeFactor()
Returns the value of the
depthBiasSlopeFactor field. |
VkPipelineRasterizationStateCreateInfo |
depthBiasSlopeFactor(float value)
Sets the specified value to the
depthBiasSlopeFactor field. |
boolean |
depthClampEnable()
Returns the value of the
depthClampEnable field. |
VkPipelineRasterizationStateCreateInfo |
depthClampEnable(boolean value)
Sets the specified value to the
depthClampEnable field. |
int |
flags()
Returns the value of the
flags field. |
VkPipelineRasterizationStateCreateInfo |
flags(int value)
Sets the specified value to the
flags field. |
int |
frontFace()
Returns the value of the
frontFace field. |
VkPipelineRasterizationStateCreateInfo |
frontFace(int value)
Sets the specified value to the
frontFace field. |
float |
lineWidth()
Returns the value of the
lineWidth field. |
VkPipelineRasterizationStateCreateInfo |
lineWidth(float value)
Sets the specified value to the
lineWidth field. |
static VkPipelineRasterizationStateCreateInfo |
malloc()
Returns a new
VkPipelineRasterizationStateCreateInfo instance allocated with memAlloc. |
static VkPipelineRasterizationStateCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkPipelineRasterizationStateCreateInfo.Buffer instance allocated with memAlloc. |
static VkPipelineRasterizationStateCreateInfo |
mallocStack()
Returns a new
VkPipelineRasterizationStateCreateInfo instance allocated on the thread-local MemoryStack. |
static VkPipelineRasterizationStateCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkPipelineRasterizationStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkPipelineRasterizationStateCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineRasterizationStateCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkPipelineRasterizationStateCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineRasterizationStateCreateInfo instance allocated on the specified MemoryStack. |
static int |
ncullMode(long struct)
Unsafe version of
cullMode(). |
static void |
ncullMode(long struct,
int value)
Unsafe version of
cullMode. |
static float |
ndepthBiasClamp(long struct)
Unsafe version of
depthBiasClamp(). |
static void |
ndepthBiasClamp(long struct,
float value)
Unsafe version of
depthBiasClamp. |
static float |
ndepthBiasConstantFactor(long struct)
Unsafe version of
depthBiasConstantFactor(). |
static void |
ndepthBiasConstantFactor(long struct,
float value)
Unsafe version of
depthBiasConstantFactor. |
static int |
ndepthBiasEnable(long struct)
Unsafe version of
depthBiasEnable(). |
static void |
ndepthBiasEnable(long struct,
int value)
Unsafe version of
depthBiasEnable. |
static float |
ndepthBiasSlopeFactor(long struct)
Unsafe version of
depthBiasSlopeFactor(). |
static void |
ndepthBiasSlopeFactor(long struct,
float value)
Unsafe version of
depthBiasSlopeFactor. |
static int |
ndepthClampEnable(long struct)
Unsafe version of
depthClampEnable(). |
static void |
ndepthClampEnable(long struct,
int value)
Unsafe version of
depthClampEnable. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static int |
nfrontFace(long struct)
Unsafe version of
frontFace(). |
static void |
nfrontFace(long struct,
int value)
Unsafe version of
frontFace. |
static float |
nlineWidth(long struct)
Unsafe version of
lineWidth(). |
static void |
nlineWidth(long struct,
float value)
Unsafe version of
lineWidth. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
npolygonMode(long struct)
Unsafe version of
polygonMode(). |
static void |
npolygonMode(long struct,
int value)
Unsafe version of
polygonMode. |
static int |
nrasterizerDiscardEnable(long struct)
Unsafe version of
rasterizerDiscardEnable(). |
static void |
nrasterizerDiscardEnable(long struct,
int value)
Unsafe version of
rasterizerDiscardEnable. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkPipelineRasterizationStateCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
int |
polygonMode()
Returns the value of the
polygonMode field. |
VkPipelineRasterizationStateCreateInfo |
polygonMode(int value)
Sets the specified value to the
polygonMode field. |
boolean |
rasterizerDiscardEnable()
Returns the value of the
rasterizerDiscardEnable field. |
VkPipelineRasterizationStateCreateInfo |
rasterizerDiscardEnable(boolean value)
Sets the specified value to the
rasterizerDiscardEnable field. |
VkPipelineRasterizationStateCreateInfo |
set(int sType,
long pNext,
int flags,
boolean depthClampEnable,
boolean rasterizerDiscardEnable,
int polygonMode,
int cullMode,
int frontFace,
boolean depthBiasEnable,
float depthBiasConstantFactor,
float depthBiasClamp,
float depthBiasSlopeFactor,
float lineWidth)
Initializes this struct with the specified values.
|
VkPipelineRasterizationStateCreateInfo |
set(VkPipelineRasterizationStateCreateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPipelineRasterizationStateCreateInfo |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int DEPTHCLAMPENABLE
public static final int RASTERIZERDISCARDENABLE
public static final int POLYGONMODE
public static final int CULLMODE
public static final int FRONTFACE
public static final int DEPTHBIASENABLE
public static final int DEPTHBIASCONSTANTFACTOR
public static final int DEPTHBIASCLAMP
public static final int DEPTHBIASSLOPEFACTOR
public static final int LINEWIDTH
public VkPipelineRasterizationStateCreateInfo(java.nio.ByteBuffer container)
VkPipelineRasterizationStateCreateInfo instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int flags()
flags field.public boolean depthClampEnable()
depthClampEnable field.public boolean rasterizerDiscardEnable()
rasterizerDiscardEnable field.public int polygonMode()
polygonMode field.public int cullMode()
cullMode field.public int frontFace()
frontFace field.public boolean depthBiasEnable()
depthBiasEnable field.public float depthBiasConstantFactor()
depthBiasConstantFactor field.public float depthBiasClamp()
depthBiasClamp field.public float depthBiasSlopeFactor()
depthBiasSlopeFactor field.public float lineWidth()
lineWidth field.public VkPipelineRasterizationStateCreateInfo sType(int value)
sType field.public VkPipelineRasterizationStateCreateInfo pNext(long value)
pNext field.public VkPipelineRasterizationStateCreateInfo flags(int value)
flags field.public VkPipelineRasterizationStateCreateInfo depthClampEnable(boolean value)
depthClampEnable field.public VkPipelineRasterizationStateCreateInfo rasterizerDiscardEnable(boolean value)
rasterizerDiscardEnable field.public VkPipelineRasterizationStateCreateInfo polygonMode(int value)
polygonMode field.public VkPipelineRasterizationStateCreateInfo cullMode(int value)
cullMode field.public VkPipelineRasterizationStateCreateInfo frontFace(int value)
frontFace field.public VkPipelineRasterizationStateCreateInfo depthBiasEnable(boolean value)
depthBiasEnable field.public VkPipelineRasterizationStateCreateInfo depthBiasConstantFactor(float value)
depthBiasConstantFactor field.public VkPipelineRasterizationStateCreateInfo depthBiasClamp(float value)
depthBiasClamp field.public VkPipelineRasterizationStateCreateInfo depthBiasSlopeFactor(float value)
depthBiasSlopeFactor field.public VkPipelineRasterizationStateCreateInfo lineWidth(float value)
lineWidth field.public VkPipelineRasterizationStateCreateInfo set(int sType, long pNext, int flags, boolean depthClampEnable, boolean rasterizerDiscardEnable, int polygonMode, int cullMode, int frontFace, boolean depthBiasEnable, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor, float lineWidth)
public VkPipelineRasterizationStateCreateInfo set(VkPipelineRasterizationStateCreateInfo src)
src - the source structpublic static VkPipelineRasterizationStateCreateInfo malloc()
VkPipelineRasterizationStateCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkPipelineRasterizationStateCreateInfo calloc()
VkPipelineRasterizationStateCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkPipelineRasterizationStateCreateInfo create()
VkPipelineRasterizationStateCreateInfo instance allocated with BufferUtils.public static VkPipelineRasterizationStateCreateInfo create(long address)
VkPipelineRasterizationStateCreateInfo instance for the specified memory address.@Nullable public static VkPipelineRasterizationStateCreateInfo createSafe(long address)
public static VkPipelineRasterizationStateCreateInfo.Buffer malloc(int capacity)
VkPipelineRasterizationStateCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineRasterizationStateCreateInfo.Buffer calloc(int capacity)
VkPipelineRasterizationStateCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineRasterizationStateCreateInfo.Buffer create(int capacity)
VkPipelineRasterizationStateCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPipelineRasterizationStateCreateInfo.Buffer create(long address, int capacity)
VkPipelineRasterizationStateCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPipelineRasterizationStateCreateInfo.Buffer createSafe(long address, int capacity)
public static VkPipelineRasterizationStateCreateInfo mallocStack()
VkPipelineRasterizationStateCreateInfo instance allocated on the thread-local MemoryStack.public static VkPipelineRasterizationStateCreateInfo callocStack()
VkPipelineRasterizationStateCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPipelineRasterizationStateCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineRasterizationStateCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPipelineRasterizationStateCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineRasterizationStateCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPipelineRasterizationStateCreateInfo.Buffer mallocStack(int capacity)
VkPipelineRasterizationStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPipelineRasterizationStateCreateInfo.Buffer callocStack(int capacity)
VkPipelineRasterizationStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPipelineRasterizationStateCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineRasterizationStateCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPipelineRasterizationStateCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineRasterizationStateCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nflags(long struct)
flags().public static int ndepthClampEnable(long struct)
depthClampEnable().public static int nrasterizerDiscardEnable(long struct)
rasterizerDiscardEnable().public static int npolygonMode(long struct)
polygonMode().public static int ncullMode(long struct)
cullMode().public static int nfrontFace(long struct)
frontFace().public static int ndepthBiasEnable(long struct)
depthBiasEnable().public static float ndepthBiasConstantFactor(long struct)
depthBiasConstantFactor().public static float ndepthBiasClamp(long struct)
depthBiasClamp().public static float ndepthBiasSlopeFactor(long struct)
depthBiasSlopeFactor().public static float nlineWidth(long struct)
lineWidth().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void ndepthClampEnable(long struct,
int value)
depthClampEnable.public static void nrasterizerDiscardEnable(long struct,
int value)
rasterizerDiscardEnable.public static void npolygonMode(long struct,
int value)
polygonMode.public static void ncullMode(long struct,
int value)
cullMode.public static void nfrontFace(long struct,
int value)
frontFace.public static void ndepthBiasEnable(long struct,
int value)
depthBiasEnable.public static void ndepthBiasConstantFactor(long struct,
float value)
depthBiasConstantFactor.public static void ndepthBiasClamp(long struct,
float value)
depthBiasClamp.public static void ndepthBiasSlopeFactor(long struct,
float value)
depthBiasSlopeFactor.public static void nlineWidth(long struct,
float value)
lineWidth.Copyright LWJGL. All Rights Reserved. License terms.