Package org.lwjgl.vulkan
Class VkStencilOpState
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkStencilOpState {
VkStencilOp failOp;
VkStencilOp passOp;
VkStencilOp depthFailOp;
VkCompareOp compareOp;
uint32_t compareMask;
uint32_t writeMask;
uint32_t reference;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkStencilOpState(ByteBuffer container) Creates aVkStencilOpStateinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkStencilOpStatecalloc()Returns a newVkStencilOpStateinstance allocated withmemCalloc.static VkStencilOpState.Buffercalloc(int capacity) Returns a newVkStencilOpState.Bufferinstance allocated withmemCalloc.static VkStencilOpState.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkStencilOpState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkStencilOpStatecalloc(MemoryStack stack) Returns a newVkStencilOpStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkStencilOpStateDeprecated.static VkStencilOpState.BuffercallocStack(int capacity) Deprecated.static VkStencilOpState.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static VkStencilOpStatecallocStack(MemoryStack stack) Deprecated.intcompareMask(int value) Sets the specified value to thecompareMaskfield.intcompareOp(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 @Nullable VkStencilOpStatecreateSafe(long address) static @Nullable VkStencilOpState.BuffercreateSafe(long address, int capacity) intdepthFailOp(int value) Sets the specified value to thedepthFailOpfield.intfailOp()failOp(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 VkStencilOpState.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkStencilOpState.Bufferinstance allocated on the specifiedMemoryStack.static VkStencilOpStatemalloc(MemoryStack stack) Returns a newVkStencilOpStateinstance allocated on the specifiedMemoryStack.static VkStencilOpStateDeprecated.static VkStencilOpState.BuffermallocStack(int capacity) Deprecated.static VkStencilOpState.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static VkStencilOpStatemallocStack(MemoryStack stack) Deprecated.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()passOp(int value) Sets the specified value to thepassOpfield.intreference(int value) Sets the specified value to thereferencefield.set(int failOp, int passOp, int depthFailOp, int compareOp, int compareMask, int writeMask, int reference) Initializes this struct with the specified values.set(VkStencilOpState src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intwriteMask(int value) Sets the specified value to thewriteMaskfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
FAILOP
public static final int FAILOPThe struct member offsets. -
PASSOP
public static final int PASSOPThe struct member offsets. -
DEPTHFAILOP
public static final int DEPTHFAILOPThe struct member offsets. -
COMPAREOP
public static final int COMPAREOPThe struct member offsets. -
COMPAREMASK
public static final int COMPAREMASKThe struct member offsets. -
WRITEMASK
public static final int WRITEMASKThe struct member offsets. -
REFERENCE
public static final int REFERENCEThe struct member offsets.
-
-
Constructor Details
-
VkStencilOpState
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkStencilOpState>
-
failOp
public int failOp()- Returns:
- the value of the
failOpfield.
-
passOp
public int passOp()- Returns:
- the value of the
passOpfield.
-
depthFailOp
public int depthFailOp()- Returns:
- the value of the
depthFailOpfield.
-
compareOp
public int compareOp()- Returns:
- the value of the
compareOpfield.
-
compareMask
public int compareMask()- Returns:
- the value of the
compareMaskfield.
-
writeMask
public int writeMask()- Returns:
- the value of the
writeMaskfield.
-
reference
public int reference()- Returns:
- the value of the
referencefield.
-
failOp
Sets the specified value to thefailOpfield. -
passOp
Sets the specified value to thepassOpfield. -
depthFailOp
Sets the specified value to thedepthFailOpfield. -
compareOp
Sets the specified value to thecompareOpfield. -
compareMask
Sets the specified value to thecompareMaskfield. -
writeMask
Sets the specified value to thewriteMaskfield. -
reference
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
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkStencilOpStateinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkStencilOpStateinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkStencilOpStateinstance allocated withBufferUtils. -
create
Returns a newVkStencilOpStateinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkStencilOpState.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkStencilOpState.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkStencilOpState.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkStencilOpState.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVkStencilOpStateinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkStencilOpStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkStencilOpState.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkStencilOpState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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.
-