Package org.lwjgl.vulkan
Class VkPipelineDepthStencilStateCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineDepthStencilStateCreateInfo
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkPipelineDepthStencilStateCreateInfo extends Struct
Khronos Reference Page
Vulkan SpecificationContains information about depth bounds tests, stencil test and depth test as part of graphics pipeline creation.
Valid Usage
sTypemust beSTRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFOpNextmust beNULLflagsmust be 0depthCompareOpmust be a validVkCompareOpvaluefrontmust be a validVkStencilOpStatestructurebackmust be a validVkStencilOpStatestructure- If the depth bounds testing feature is not enabled,
depthBoundsTestEnablemust beFALSE
Member documentation
sType– the type of this structure. Must be:STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFOpNext– reserved for use by extensionsflags– reserved for future usedepthTestEnable– controls whether depth testing is enableddepthWriteEnable– controls whether depth writes are enableddepthCompareOp– the comparison operator used in the depth test. One of:COMPARE_OP_ALWAYSCOMPARE_OP_EQUALCOMPARE_OP_GREATERCOMPARE_OP_GREATER_OR_EQUALCOMPARE_OP_LESSCOMPARE_OP_LESS_OR_EQUALCOMPARE_OP_NEVERCOMPARE_OP_NOT_EQUALdepthBoundsTestEnable– controls whether depth bounds testing is enabledstencilTestEnable– controls whether stencil testing is enabledfront– control the parameters of the stencil test for front facing primitivesback– control the parameters of the stencil test for back facing primitivesminDepthBounds– the minimum depths bounds test valuemaxDepthBounds– the maximum depths bounds test value
Layout
struct VkPipelineDepthStencilStateCreateInfo { VkStructureType sType; const void * pNext; VkPipelineDepthStencilStateCreateFlags flags; VkBool32 depthTestEnable; VkBool32 depthWriteEnable; VkCompareOp depthCompareOp; VkBool32 depthBoundsTestEnable; VkBool32 stencilTestEnable;VkStencilOpStatefront;VkStencilOpStateback; float minDepthBounds; float maxDepthBounds; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkPipelineDepthStencilStateCreateInfo.BufferAn array ofVkPipelineDepthStencilStateCreateInfostructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkPipelineDepthStencilStateCreateInfo(java.nio.ByteBuffer container)Creates aVkPipelineDepthStencilStateCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description VkStencilOpStateback()Returns aVkStencilOpStateview of thebackfield.VkPipelineDepthStencilStateCreateInfoback(VkStencilOpState value)Copies the specifiedVkStencilOpStateto thebackfield.static VkPipelineDepthStencilStateCreateInfocalloc()Returns a newVkPipelineDepthStencilStateCreateInfoinstance allocated withmemCalloc.static VkPipelineDepthStencilStateCreateInfo.Buffercalloc(int capacity)Returns a newVkPipelineDepthStencilStateCreateInfo.Bufferinstance allocated withmemCalloc.static VkPipelineDepthStencilStateCreateInfocallocStack()Returns a newVkPipelineDepthStencilStateCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineDepthStencilStateCreateInfo.BuffercallocStack(int capacity)Returns a newVkPipelineDepthStencilStateCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineDepthStencilStateCreateInfo.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkPipelineDepthStencilStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineDepthStencilStateCreateInfocallocStack(MemoryStack stack)Returns a newVkPipelineDepthStencilStateCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineDepthStencilStateCreateInfocreate()Returns a newVkPipelineDepthStencilStateCreateInfoinstance allocated withBufferUtils.static VkPipelineDepthStencilStateCreateInfo.Buffercreate(int capacity)Returns a newVkPipelineDepthStencilStateCreateInfo.Bufferinstance allocated withBufferUtils.static VkPipelineDepthStencilStateCreateInfocreate(long address)Returns a newVkPipelineDepthStencilStateCreateInfoinstance for the specified memory address ornullif the address isNULL.static VkPipelineDepthStencilStateCreateInfo.Buffercreate(long address, int capacity)Create aVkPipelineDepthStencilStateCreateInfo.Bufferinstance at the specified memory.intdepthBoundsTestEnable()Returns the value of thedepthBoundsTestEnablefield.VkPipelineDepthStencilStateCreateInfodepthBoundsTestEnable(int value)Sets the specified value to thedepthBoundsTestEnablefield.intdepthCompareOp()Returns the value of thedepthCompareOpfield.VkPipelineDepthStencilStateCreateInfodepthCompareOp(int value)Sets the specified value to thedepthCompareOpfield.intdepthTestEnable()Returns the value of thedepthTestEnablefield.VkPipelineDepthStencilStateCreateInfodepthTestEnable(int value)Sets the specified value to thedepthTestEnablefield.intdepthWriteEnable()Returns the value of thedepthWriteEnablefield.VkPipelineDepthStencilStateCreateInfodepthWriteEnable(int value)Sets the specified value to thedepthWriteEnablefield.intflags()Returns the value of theflagsfield.VkPipelineDepthStencilStateCreateInfoflags(int value)Sets the specified value to theflagsfield.VkStencilOpStatefront()Returns aVkStencilOpStateview of thefrontfield.VkPipelineDepthStencilStateCreateInfofront(VkStencilOpState value)Copies the specifiedVkStencilOpStateto thefrontfield.static VkPipelineDepthStencilStateCreateInfomalloc()Returns a newVkPipelineDepthStencilStateCreateInfoinstance allocated withmemAlloc.static VkPipelineDepthStencilStateCreateInfo.Buffermalloc(int capacity)Returns a newVkPipelineDepthStencilStateCreateInfo.Bufferinstance allocated withmemAlloc.static VkPipelineDepthStencilStateCreateInfomallocStack()Returns a newVkPipelineDepthStencilStateCreateInfoinstance allocated on the thread-localMemoryStack.static VkPipelineDepthStencilStateCreateInfo.BuffermallocStack(int capacity)Returns a newVkPipelineDepthStencilStateCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkPipelineDepthStencilStateCreateInfo.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkPipelineDepthStencilStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineDepthStencilStateCreateInfomallocStack(MemoryStack stack)Returns a newVkPipelineDepthStencilStateCreateInfoinstance allocated on the specifiedMemoryStack.floatmaxDepthBounds()Returns the value of themaxDepthBoundsfield.VkPipelineDepthStencilStateCreateInfomaxDepthBounds(float value)Sets the specified value to themaxDepthBoundsfield.floatminDepthBounds()Returns the value of theminDepthBoundsfield.VkPipelineDepthStencilStateCreateInfominDepthBounds(float value)Sets the specified value to theminDepthBoundsfield.VkPipelineDepthStencilStateCreateInfonset(long struct)Unsafe version ofset.longpNext()Returns the value of thepNextfield.VkPipelineDepthStencilStateCreateInfopNext(long value)Sets the specified value to thepNextfield.VkPipelineDepthStencilStateCreateInfoset(int sType, long pNext, int flags, int depthTestEnable, int depthWriteEnable, int depthCompareOp, int depthBoundsTestEnable, int stencilTestEnable, VkStencilOpState front, VkStencilOpState back, float minDepthBounds, float maxDepthBounds)Initializes this struct with the specified values.VkPipelineDepthStencilStateCreateInfoset(VkPipelineDepthStencilStateCreateInfo src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).intstencilTestEnable()Returns the value of thestencilTestEnablefield.VkPipelineDepthStencilStateCreateInfostencilTestEnable(int value)Sets the specified value to thestencilTestEnablefield.intsType()Returns the value of thesTypefield.VkPipelineDepthStencilStateCreateInfosType(int value)Sets the specified value to thesTypefield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkPipelineDepthStencilStateCreateInfo
public VkPipelineDepthStencilStateCreateInfo(java.nio.ByteBuffer container)
Creates aVkPipelineDepthStencilStateCreateInfoinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sizeof
public int sizeof()
Description copied from class:StructReturns thesizeof(struct).
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
depthTestEnable
public int depthTestEnable()
Returns the value of thedepthTestEnablefield.
-
depthWriteEnable
public int depthWriteEnable()
Returns the value of thedepthWriteEnablefield.
-
depthCompareOp
public int depthCompareOp()
Returns the value of thedepthCompareOpfield.
-
depthBoundsTestEnable
public int depthBoundsTestEnable()
Returns the value of thedepthBoundsTestEnablefield.
-
stencilTestEnable
public int stencilTestEnable()
Returns the value of thestencilTestEnablefield.
-
front
public VkStencilOpState front()
Returns aVkStencilOpStateview of thefrontfield.
-
back
public VkStencilOpState back()
Returns aVkStencilOpStateview of thebackfield.
-
minDepthBounds
public float minDepthBounds()
Returns the value of theminDepthBoundsfield.
-
maxDepthBounds
public float maxDepthBounds()
Returns the value of themaxDepthBoundsfield.
-
sType
public VkPipelineDepthStencilStateCreateInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPipelineDepthStencilStateCreateInfo pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkPipelineDepthStencilStateCreateInfo flags(int value)
Sets the specified value to theflagsfield.
-
depthTestEnable
public VkPipelineDepthStencilStateCreateInfo depthTestEnable(int value)
Sets the specified value to thedepthTestEnablefield.
-
depthWriteEnable
public VkPipelineDepthStencilStateCreateInfo depthWriteEnable(int value)
Sets the specified value to thedepthWriteEnablefield.
-
depthCompareOp
public VkPipelineDepthStencilStateCreateInfo depthCompareOp(int value)
Sets the specified value to thedepthCompareOpfield.
-
depthBoundsTestEnable
public VkPipelineDepthStencilStateCreateInfo depthBoundsTestEnable(int value)
Sets the specified value to thedepthBoundsTestEnablefield.
-
stencilTestEnable
public VkPipelineDepthStencilStateCreateInfo stencilTestEnable(int value)
Sets the specified value to thestencilTestEnablefield.
-
front
public VkPipelineDepthStencilStateCreateInfo front(VkStencilOpState value)
Copies the specifiedVkStencilOpStateto thefrontfield.
-
back
public VkPipelineDepthStencilStateCreateInfo back(VkStencilOpState value)
Copies the specifiedVkStencilOpStateto thebackfield.
-
minDepthBounds
public VkPipelineDepthStencilStateCreateInfo minDepthBounds(float value)
Sets the specified value to theminDepthBoundsfield.
-
maxDepthBounds
public VkPipelineDepthStencilStateCreateInfo maxDepthBounds(float value)
Sets the specified value to themaxDepthBoundsfield.
-
set
public VkPipelineDepthStencilStateCreateInfo set(int sType, long pNext, int flags, int depthTestEnable, int depthWriteEnable, int depthCompareOp, int depthBoundsTestEnable, int stencilTestEnable, VkStencilOpState front, VkStencilOpState back, float minDepthBounds, float maxDepthBounds)
Initializes this struct with the specified values.
-
nset
public VkPipelineDepthStencilStateCreateInfo nset(long struct)
Unsafe version ofset.
-
set
public VkPipelineDepthStencilStateCreateInfo set(VkPipelineDepthStencilStateCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineDepthStencilStateCreateInfo malloc()
Returns a newVkPipelineDepthStencilStateCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineDepthStencilStateCreateInfo calloc()
Returns a newVkPipelineDepthStencilStateCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineDepthStencilStateCreateInfo create()
Returns a newVkPipelineDepthStencilStateCreateInfoinstance allocated withBufferUtils.
-
create
public static VkPipelineDepthStencilStateCreateInfo create(long address)
Returns a newVkPipelineDepthStencilStateCreateInfoinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkPipelineDepthStencilStateCreateInfo.Buffer malloc(int capacity)
Returns a newVkPipelineDepthStencilStateCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineDepthStencilStateCreateInfo.Buffer calloc(int capacity)
Returns a newVkPipelineDepthStencilStateCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineDepthStencilStateCreateInfo.Buffer create(int capacity)
Returns a newVkPipelineDepthStencilStateCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineDepthStencilStateCreateInfo.Buffer create(long address, int capacity)
Create aVkPipelineDepthStencilStateCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkPipelineDepthStencilStateCreateInfo mallocStack()
Returns a newVkPipelineDepthStencilStateCreateInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPipelineDepthStencilStateCreateInfo callocStack()
Returns a newVkPipelineDepthStencilStateCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPipelineDepthStencilStateCreateInfo mallocStack(MemoryStack stack)
Returns a newVkPipelineDepthStencilStateCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPipelineDepthStencilStateCreateInfo callocStack(MemoryStack stack)
Returns a newVkPipelineDepthStencilStateCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPipelineDepthStencilStateCreateInfo.Buffer mallocStack(int capacity)
Returns a newVkPipelineDepthStencilStateCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPipelineDepthStencilStateCreateInfo.Buffer callocStack(int capacity)
Returns a newVkPipelineDepthStencilStateCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPipelineDepthStencilStateCreateInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkPipelineDepthStencilStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPipelineDepthStencilStateCreateInfo.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkPipelineDepthStencilStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-