public class VkPipelineDepthStencilStateCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
depthBoundsTestEnable must be FALSEsType must be STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFOpNext must be NULLflags must be 0depthCompareOp must be a valid VkCompareOp valuefront must be a valid VkStencilOpState structureback must be a valid VkStencilOpState structureVkGraphicsPipelineCreateInfo, VkStencilOpState
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – reserved for future use.depthTestEnable – controls whether depth testing is enabled.depthWriteEnable – controls whether depth writes are enabled when depthTestEnable is TRUE. Depth writes are always disabled when depthTestEnable is FALSE.depthCompareOp – the comparison operator used in the depth test.depthBoundsTestEnable – controls whether depth bounds testing is enabled.stencilTestEnable – controls whether stencil testing is enabled.front – front and back control the parameters of the stencil test.back – see frontminDepthBounds – minDepthBounds and maxDepthBounds define the range of values used in the depth bounds test.maxDepthBounds – see minDepthBounds
struct VkPipelineDepthStencilStateCreateInfo {
VkStructureType sType;
void const * pNext;
VkPipelineDepthStencilStateCreateFlags flags;
VkBool32 depthTestEnable;
VkBool32 depthWriteEnable;
VkCompareOp depthCompareOp;
VkBool32 depthBoundsTestEnable;
VkBool32 stencilTestEnable;
VkStencilOpState front;
VkStencilOpState back;
float minDepthBounds;
float maxDepthBounds;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPipelineDepthStencilStateCreateInfo.Buffer
An array of
VkPipelineDepthStencilStateCreateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BACK
The struct member offsets.
|
static int |
DEPTHBOUNDSTESTENABLE
The struct member offsets.
|
static int |
DEPTHCOMPAREOP
The struct member offsets.
|
static int |
DEPTHTESTENABLE
The struct member offsets.
|
static int |
DEPTHWRITEENABLE
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
FRONT
The struct member offsets.
|
static int |
MAXDEPTHBOUNDS
The struct member offsets.
|
static int |
MINDEPTHBOUNDS
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STENCILTESTENABLE
The struct member offsets.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPipelineDepthStencilStateCreateInfo(java.nio.ByteBuffer container)
Creates a
VkPipelineDepthStencilStateCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
VkStencilOpState |
back()
Returns a
VkStencilOpState view of the back field. |
VkPipelineDepthStencilStateCreateInfo |
back(java.util.function.Consumer<VkStencilOpState> consumer)
Passes the
back field to the specified Consumer. |
VkPipelineDepthStencilStateCreateInfo |
back(VkStencilOpState value)
Copies the specified
VkStencilOpState to the back field. |
static VkPipelineDepthStencilStateCreateInfo |
calloc()
Returns a new
VkPipelineDepthStencilStateCreateInfo instance allocated with memCalloc. |
static VkPipelineDepthStencilStateCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkPipelineDepthStencilStateCreateInfo.Buffer instance allocated with memCalloc. |
static VkPipelineDepthStencilStateCreateInfo |
callocStack()
Returns a new
VkPipelineDepthStencilStateCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineDepthStencilStateCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkPipelineDepthStencilStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineDepthStencilStateCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineDepthStencilStateCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineDepthStencilStateCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineDepthStencilStateCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineDepthStencilStateCreateInfo |
create()
Returns a new
VkPipelineDepthStencilStateCreateInfo instance allocated with BufferUtils. |
static VkPipelineDepthStencilStateCreateInfo.Buffer |
create(int capacity)
Returns a new
VkPipelineDepthStencilStateCreateInfo.Buffer instance allocated with BufferUtils. |
static VkPipelineDepthStencilStateCreateInfo |
create(long address)
Returns a new
VkPipelineDepthStencilStateCreateInfo instance for the specified memory address. |
static VkPipelineDepthStencilStateCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkPipelineDepthStencilStateCreateInfo.Buffer instance at the specified memory. |
static VkPipelineDepthStencilStateCreateInfo |
createSafe(long address)
|
static VkPipelineDepthStencilStateCreateInfo.Buffer |
createSafe(long address,
int capacity)
|
boolean |
depthBoundsTestEnable()
Returns the value of the
depthBoundsTestEnable field. |
VkPipelineDepthStencilStateCreateInfo |
depthBoundsTestEnable(boolean value)
Sets the specified value to the
depthBoundsTestEnable field. |
int |
depthCompareOp()
Returns the value of the
depthCompareOp field. |
VkPipelineDepthStencilStateCreateInfo |
depthCompareOp(int value)
Sets the specified value to the
depthCompareOp field. |
boolean |
depthTestEnable()
Returns the value of the
depthTestEnable field. |
VkPipelineDepthStencilStateCreateInfo |
depthTestEnable(boolean value)
Sets the specified value to the
depthTestEnable field. |
boolean |
depthWriteEnable()
Returns the value of the
depthWriteEnable field. |
VkPipelineDepthStencilStateCreateInfo |
depthWriteEnable(boolean value)
Sets the specified value to the
depthWriteEnable field. |
int |
flags()
Returns the value of the
flags field. |
VkPipelineDepthStencilStateCreateInfo |
flags(int value)
Sets the specified value to the
flags field. |
VkStencilOpState |
front()
Returns a
VkStencilOpState view of the front field. |
VkPipelineDepthStencilStateCreateInfo |
front(java.util.function.Consumer<VkStencilOpState> consumer)
Passes the
front field to the specified Consumer. |
VkPipelineDepthStencilStateCreateInfo |
front(VkStencilOpState value)
Copies the specified
VkStencilOpState to the front field. |
static VkPipelineDepthStencilStateCreateInfo |
malloc()
Returns a new
VkPipelineDepthStencilStateCreateInfo instance allocated with memAlloc. |
static VkPipelineDepthStencilStateCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkPipelineDepthStencilStateCreateInfo.Buffer instance allocated with memAlloc. |
static VkPipelineDepthStencilStateCreateInfo |
mallocStack()
Returns a new
VkPipelineDepthStencilStateCreateInfo instance allocated on the thread-local MemoryStack. |
static VkPipelineDepthStencilStateCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkPipelineDepthStencilStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkPipelineDepthStencilStateCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineDepthStencilStateCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkPipelineDepthStencilStateCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineDepthStencilStateCreateInfo instance allocated on the specified MemoryStack. |
float |
maxDepthBounds()
Returns the value of the
maxDepthBounds field. |
VkPipelineDepthStencilStateCreateInfo |
maxDepthBounds(float value)
Sets the specified value to the
maxDepthBounds field. |
float |
minDepthBounds()
Returns the value of the
minDepthBounds field. |
VkPipelineDepthStencilStateCreateInfo |
minDepthBounds(float value)
Sets the specified value to the
minDepthBounds field. |
static VkStencilOpState |
nback(long struct)
Unsafe version of
back(). |
static void |
nback(long struct,
VkStencilOpState value)
Unsafe version of
back. |
static int |
ndepthBoundsTestEnable(long struct)
Unsafe version of
depthBoundsTestEnable(). |
static void |
ndepthBoundsTestEnable(long struct,
int value)
Unsafe version of
depthBoundsTestEnable. |
static int |
ndepthCompareOp(long struct)
Unsafe version of
depthCompareOp(). |
static void |
ndepthCompareOp(long struct,
int value)
Unsafe version of
depthCompareOp. |
static int |
ndepthTestEnable(long struct)
Unsafe version of
depthTestEnable(). |
static void |
ndepthTestEnable(long struct,
int value)
Unsafe version of
depthTestEnable. |
static int |
ndepthWriteEnable(long struct)
Unsafe version of
depthWriteEnable(). |
static void |
ndepthWriteEnable(long struct,
int value)
Unsafe version of
depthWriteEnable. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static VkStencilOpState |
nfront(long struct)
Unsafe version of
front(). |
static void |
nfront(long struct,
VkStencilOpState value)
Unsafe version of
front. |
static float |
nmaxDepthBounds(long struct)
Unsafe version of
maxDepthBounds(). |
static void |
nmaxDepthBounds(long struct,
float value)
Unsafe version of
maxDepthBounds. |
static float |
nminDepthBounds(long struct)
Unsafe version of
minDepthBounds(). |
static void |
nminDepthBounds(long struct,
float value)
Unsafe version of
minDepthBounds. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nstencilTestEnable(long struct)
Unsafe version of
stencilTestEnable(). |
static void |
nstencilTestEnable(long struct,
int value)
Unsafe version of
stencilTestEnable. |
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. |
VkPipelineDepthStencilStateCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPipelineDepthStencilStateCreateInfo |
set(int sType,
long pNext,
int flags,
boolean depthTestEnable,
boolean depthWriteEnable,
int depthCompareOp,
boolean depthBoundsTestEnable,
boolean stencilTestEnable,
VkStencilOpState front,
VkStencilOpState back,
float minDepthBounds,
float maxDepthBounds)
Initializes this struct with the specified values.
|
VkPipelineDepthStencilStateCreateInfo |
set(VkPipelineDepthStencilStateCreateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
boolean |
stencilTestEnable()
Returns the value of the
stencilTestEnable field. |
VkPipelineDepthStencilStateCreateInfo |
stencilTestEnable(boolean value)
Sets the specified value to the
stencilTestEnable field. |
int |
sType()
Returns the value of the
sType field. |
VkPipelineDepthStencilStateCreateInfo |
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 DEPTHTESTENABLE
public static final int DEPTHWRITEENABLE
public static final int DEPTHCOMPAREOP
public static final int DEPTHBOUNDSTESTENABLE
public static final int STENCILTESTENABLE
public static final int FRONT
public static final int BACK
public static final int MINDEPTHBOUNDS
public static final int MAXDEPTHBOUNDS
public VkPipelineDepthStencilStateCreateInfo(java.nio.ByteBuffer container)
VkPipelineDepthStencilStateCreateInfo 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 depthTestEnable()
depthTestEnable field.public boolean depthWriteEnable()
depthWriteEnable field.public int depthCompareOp()
depthCompareOp field.public boolean depthBoundsTestEnable()
depthBoundsTestEnable field.public boolean stencilTestEnable()
stencilTestEnable field.public VkStencilOpState front()
VkStencilOpState view of the front field.public VkStencilOpState back()
VkStencilOpState view of the back field.public float minDepthBounds()
minDepthBounds field.public float maxDepthBounds()
maxDepthBounds field.public VkPipelineDepthStencilStateCreateInfo sType(int value)
sType field.public VkPipelineDepthStencilStateCreateInfo pNext(long value)
pNext field.public VkPipelineDepthStencilStateCreateInfo flags(int value)
flags field.public VkPipelineDepthStencilStateCreateInfo depthTestEnable(boolean value)
depthTestEnable field.public VkPipelineDepthStencilStateCreateInfo depthWriteEnable(boolean value)
depthWriteEnable field.public VkPipelineDepthStencilStateCreateInfo depthCompareOp(int value)
depthCompareOp field.public VkPipelineDepthStencilStateCreateInfo depthBoundsTestEnable(boolean value)
depthBoundsTestEnable field.public VkPipelineDepthStencilStateCreateInfo stencilTestEnable(boolean value)
stencilTestEnable field.public VkPipelineDepthStencilStateCreateInfo front(VkStencilOpState value)
VkStencilOpState to the front field.public VkPipelineDepthStencilStateCreateInfo front(java.util.function.Consumer<VkStencilOpState> consumer)
front field to the specified Consumer.public VkPipelineDepthStencilStateCreateInfo back(VkStencilOpState value)
VkStencilOpState to the back field.public VkPipelineDepthStencilStateCreateInfo back(java.util.function.Consumer<VkStencilOpState> consumer)
back field to the specified Consumer.public VkPipelineDepthStencilStateCreateInfo minDepthBounds(float value)
minDepthBounds field.public VkPipelineDepthStencilStateCreateInfo maxDepthBounds(float value)
maxDepthBounds field.public VkPipelineDepthStencilStateCreateInfo set(int sType, long pNext, int flags, boolean depthTestEnable, boolean depthWriteEnable, int depthCompareOp, boolean depthBoundsTestEnable, boolean stencilTestEnable, VkStencilOpState front, VkStencilOpState back, float minDepthBounds, float maxDepthBounds)
public VkPipelineDepthStencilStateCreateInfo set(VkPipelineDepthStencilStateCreateInfo src)
src - the source structpublic static VkPipelineDepthStencilStateCreateInfo malloc()
VkPipelineDepthStencilStateCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkPipelineDepthStencilStateCreateInfo calloc()
VkPipelineDepthStencilStateCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkPipelineDepthStencilStateCreateInfo create()
VkPipelineDepthStencilStateCreateInfo instance allocated with BufferUtils.public static VkPipelineDepthStencilStateCreateInfo create(long address)
VkPipelineDepthStencilStateCreateInfo instance for the specified memory address.@Nullable public static VkPipelineDepthStencilStateCreateInfo createSafe(long address)
public static VkPipelineDepthStencilStateCreateInfo.Buffer malloc(int capacity)
VkPipelineDepthStencilStateCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineDepthStencilStateCreateInfo.Buffer calloc(int capacity)
VkPipelineDepthStencilStateCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineDepthStencilStateCreateInfo.Buffer create(int capacity)
VkPipelineDepthStencilStateCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPipelineDepthStencilStateCreateInfo.Buffer create(long address, int capacity)
VkPipelineDepthStencilStateCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPipelineDepthStencilStateCreateInfo.Buffer createSafe(long address, int capacity)
public static VkPipelineDepthStencilStateCreateInfo mallocStack()
VkPipelineDepthStencilStateCreateInfo instance allocated on the thread-local MemoryStack.public static VkPipelineDepthStencilStateCreateInfo callocStack()
VkPipelineDepthStencilStateCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPipelineDepthStencilStateCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineDepthStencilStateCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPipelineDepthStencilStateCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineDepthStencilStateCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPipelineDepthStencilStateCreateInfo.Buffer mallocStack(int capacity)
VkPipelineDepthStencilStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPipelineDepthStencilStateCreateInfo.Buffer callocStack(int capacity)
VkPipelineDepthStencilStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPipelineDepthStencilStateCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineDepthStencilStateCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPipelineDepthStencilStateCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineDepthStencilStateCreateInfo.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 ndepthTestEnable(long struct)
depthTestEnable().public static int ndepthWriteEnable(long struct)
depthWriteEnable().public static int ndepthCompareOp(long struct)
depthCompareOp().public static int ndepthBoundsTestEnable(long struct)
depthBoundsTestEnable().public static int nstencilTestEnable(long struct)
stencilTestEnable().public static VkStencilOpState nfront(long struct)
front().public static VkStencilOpState nback(long struct)
back().public static float nminDepthBounds(long struct)
minDepthBounds().public static float nmaxDepthBounds(long struct)
maxDepthBounds().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 ndepthTestEnable(long struct,
int value)
depthTestEnable.public static void ndepthWriteEnable(long struct,
int value)
depthWriteEnable.public static void ndepthCompareOp(long struct,
int value)
depthCompareOp.public static void ndepthBoundsTestEnable(long struct,
int value)
depthBoundsTestEnable.public static void nstencilTestEnable(long struct,
int value)
stencilTestEnable.public static void nfront(long struct,
VkStencilOpState value)
front.public static void nback(long struct,
VkStencilOpState value)
back.public static void nminDepthBounds(long struct,
float value)
minDepthBounds.public static void nmaxDepthBounds(long struct,
float value)
maxDepthBounds.Copyright LWJGL. All Rights Reserved. License terms.