Package org.lwjgl.vulkan
Class VkStencilOpState
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkStencilOpState
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkStencilOpState extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying stencil operation state.Valid Usage (Implicit)
failOpmust be a validVkStencilOpvaluepassOpmust be a validVkStencilOpvaluedepthFailOpmust be a validVkStencilOpvaluecompareOpmust be a validVkCompareOpvalue
See Also
VkPipelineDepthStencilStateCreateInfoMember documentation
failOp– aVkStencilOpvalue specifying the action performed on samples that fail the stencil test.passOp– aVkStencilOpvalue specifying the action performed on samples that pass both the depth and stencil tests.depthFailOp– aVkStencilOpvalue specifying the action performed on samples that pass the stencil test and fail the depth test.compareOp– aVkCompareOpvalue specifying the comparison operator used in the stencil test.compareMask– selects the bits of the unsigned integer stencil values participating in the stencil test.writeMask– selects the bits of the unsigned integer stencil values updated by the stencil test in the stencil framebuffer attachment.reference– an integer reference value that is used in the unsigned stencil comparison.
Layout
struct VkStencilOpState { VkStencilOp failOp; VkStencilOp passOp; VkStencilOp depthFailOp; VkCompareOp compareOp; uint32_t compareMask; uint32_t writeMask; uint32_t reference; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkStencilOpState.BufferAn array ofVkStencilOpStatestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOMPAREMASK
COMPAREOP
DEPTHFAILOP
FAILOP
PASSOP
REFERENCEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intWRITEMASKThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkStencilOpState(java.nio.ByteBuffer container)Creates aVkStencilOpStateinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkStencilOpStatecalloc()Returns a newVkStencilOpStateinstance allocated withmemCalloc.static VkStencilOpState.Buffercalloc(int capacity)Returns a newVkStencilOpState.Bufferinstance allocated withmemCalloc.static VkStencilOpStatecallocStack()Returns a newVkStencilOpStateinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkStencilOpState.BuffercallocStack(int capacity)Returns a newVkStencilOpState.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkStencilOpState.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkStencilOpState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkStencilOpStatecallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkStencilOpStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcompareMask()Returns the value of thecompareMaskfield.VkStencilOpStatecompareMask(int value)Sets the specified value to thecompareMaskfield.intcompareOp()Returns the value of thecompareOpfield.VkStencilOpStatecompareOp(int value)Sets the specified value to thecompareOpfield.static VkStencilOpStatecreate()Returns a newVkStencilOpStateinstance allocated withBufferUtils.static VkStencilOpState.Buffercreate(int capacity)Returns a newVkStencilOpState.Bufferinstance allocated withBufferUtils.static VkStencilOpStatecreate(long address)Returns a newVkStencilOpStateinstance for the specified memory address.static VkStencilOpState.Buffercreate(long address, int capacity)Create aVkStencilOpState.Bufferinstance at the specified memory.static VkStencilOpStatecreateSafe(long address)static VkStencilOpState.BuffercreateSafe(long address, int capacity)intdepthFailOp()Returns the value of thedepthFailOpfield.VkStencilOpStatedepthFailOp(int value)Sets the specified value to thedepthFailOpfield.intfailOp()Returns the value of thefailOpfield.VkStencilOpStatefailOp(int value)Sets the specified value to thefailOpfield.static VkStencilOpStatemalloc()Returns a newVkStencilOpStateinstance allocated withmemAlloc.static VkStencilOpState.Buffermalloc(int capacity)Returns a newVkStencilOpState.Bufferinstance allocated withmemAlloc.static VkStencilOpStatemallocStack()Returns a newVkStencilOpStateinstance allocated on the thread-localMemoryStack.static VkStencilOpState.BuffermallocStack(int capacity)Returns a newVkStencilOpState.Bufferinstance allocated on the thread-localMemoryStack.static VkStencilOpState.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkStencilOpState.Bufferinstance allocated on the specifiedMemoryStack.static VkStencilOpStatemallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkStencilOpStateinstance allocated on the specifiedMemoryStack.static intncompareMask(long struct)Unsafe version ofcompareMask().static voidncompareMask(long struct, int value)Unsafe version ofcompareMask.static intncompareOp(long struct)Unsafe version ofcompareOp().static voidncompareOp(long struct, int value)Unsafe version ofcompareOp.static intndepthFailOp(long struct)Unsafe version ofdepthFailOp().static voidndepthFailOp(long struct, int value)Unsafe version ofdepthFailOp.static intnfailOp(long struct)Unsafe version offailOp().static voidnfailOp(long struct, int value)Unsafe version offailOp.static intnpassOp(long struct)Unsafe version ofpassOp().static voidnpassOp(long struct, int value)Unsafe version ofpassOp.static intnreference(long struct)Unsafe version ofreference().static voidnreference(long struct, int value)Unsafe version ofreference.static intnwriteMask(long struct)Unsafe version ofwriteMask().static voidnwriteMask(long struct, int value)Unsafe version ofwriteMask.intpassOp()Returns the value of thepassOpfield.VkStencilOpStatepassOp(int value)Sets the specified value to thepassOpfield.intreference()Returns the value of thereferencefield.VkStencilOpStatereference(int value)Sets the specified value to thereferencefield.VkStencilOpStateset(int failOp, int passOp, int depthFailOp, int compareOp, int compareMask, int writeMask, int reference)Initializes this struct with the specified values.VkStencilOpStateset(VkStencilOpState src)Copies the specified struct data to this struct.intsizeof()intwriteMask()Returns the value of thewriteMaskfield.VkStencilOpStatewriteMask(int value)Sets the specified value to thewriteMaskfield.
-
-
-
Constructor Detail
-
VkStencilOpState
public VkStencilOpState(java.nio.ByteBuffer container)
Creates aVkStencilOpStateinstance 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()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
failOp
public int failOp()
Returns the value of thefailOpfield.
-
passOp
public int passOp()
Returns the value of thepassOpfield.
-
depthFailOp
public int depthFailOp()
Returns the value of thedepthFailOpfield.
-
compareOp
public int compareOp()
Returns the value of thecompareOpfield.
-
compareMask
public int compareMask()
Returns the value of thecompareMaskfield.
-
writeMask
public int writeMask()
Returns the value of thewriteMaskfield.
-
reference
public int reference()
Returns the value of thereferencefield.
-
failOp
public VkStencilOpState failOp(int value)
Sets the specified value to thefailOpfield.
-
passOp
public VkStencilOpState passOp(int value)
Sets the specified value to thepassOpfield.
-
depthFailOp
public VkStencilOpState depthFailOp(int value)
Sets the specified value to thedepthFailOpfield.
-
compareOp
public VkStencilOpState compareOp(int value)
Sets the specified value to thecompareOpfield.
-
compareMask
public VkStencilOpState compareMask(int value)
Sets the specified value to thecompareMaskfield.
-
writeMask
public VkStencilOpState writeMask(int value)
Sets the specified value to thewriteMaskfield.
-
reference
public VkStencilOpState reference(int value)
Sets the specified value to thereferencefield.
-
set
public VkStencilOpState set(int failOp, int passOp, int depthFailOp, int compareOp, int compareMask, int writeMask, int reference)
Initializes this struct with the specified values.
-
set
public VkStencilOpState set(VkStencilOpState src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkStencilOpState malloc()
Returns a newVkStencilOpStateinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkStencilOpState calloc()
Returns a newVkStencilOpStateinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkStencilOpState create()
Returns a newVkStencilOpStateinstance allocated withBufferUtils.
-
create
public static VkStencilOpState create(long address)
Returns a newVkStencilOpStateinstance for the specified memory address.
-
createSafe
@Nullable public static VkStencilOpState createSafe(long address)
-
malloc
public static VkStencilOpState.Buffer malloc(int capacity)
Returns a newVkStencilOpState.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkStencilOpState.Buffer calloc(int capacity)
Returns a newVkStencilOpState.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkStencilOpState.Buffer create(int capacity)
Returns a newVkStencilOpState.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkStencilOpState.Buffer create(long address, int capacity)
Create aVkStencilOpState.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkStencilOpState.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkStencilOpState mallocStack()
Returns a newVkStencilOpStateinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkStencilOpState callocStack()
Returns a newVkStencilOpStateinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkStencilOpState mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkStencilOpStateinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkStencilOpState callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkStencilOpStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkStencilOpState.Buffer mallocStack(int capacity)
Returns a newVkStencilOpState.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkStencilOpState.Buffer callocStack(int capacity)
Returns a newVkStencilOpState.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkStencilOpState.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkStencilOpState.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkStencilOpState.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkStencilOpState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nfailOp
public static int nfailOp(long struct)
Unsafe version offailOp().
-
npassOp
public static int npassOp(long struct)
Unsafe version ofpassOp().
-
ndepthFailOp
public static int ndepthFailOp(long struct)
Unsafe version ofdepthFailOp().
-
ncompareOp
public static int ncompareOp(long struct)
Unsafe version ofcompareOp().
-
ncompareMask
public static int ncompareMask(long struct)
Unsafe version ofcompareMask().
-
nwriteMask
public static int nwriteMask(long struct)
Unsafe version ofwriteMask().
-
nreference
public static int nreference(long struct)
Unsafe version ofreference().
-
nfailOp
public static void nfailOp(long struct, int value)Unsafe version offailOp.
-
npassOp
public static void npassOp(long struct, int value)Unsafe version ofpassOp.
-
ndepthFailOp
public static void ndepthFailOp(long struct, int value)Unsafe version ofdepthFailOp.
-
ncompareOp
public static void ncompareOp(long struct, int value)Unsafe version ofcompareOp.
-
ncompareMask
public static void ncompareMask(long struct, int value)Unsafe version ofcompareMask.
-
nwriteMask
public static void nwriteMask(long struct, int value)Unsafe version ofwriteMask.
-
nreference
public static void nreference(long struct, int value)Unsafe version ofreference.
-
-