Record Class VkPipelineDepthStencilStateCreateInfo
- All Implemented Interfaces:
IPointer
,IVkPipelineDepthStencilStateCreateInfo
Represents a pointer to a VkPipelineDepthStencilStateCreateInfo
structure in native memory.
Structure
typedef struct VkPipelineDepthStencilStateCreateInfo {
VkStructureType
sType
;
void const* pNext
; // optional
VkPipelineDepthStencilStateCreateFlags
flags
; // optional
VkBool32 depthTestEnable
;
VkBool32 depthWriteEnable
;
VkCompareOp
depthCompareOp
;
VkBool32 depthBoundsTestEnable
;
VkBool32 stencilTestEnable
;
VkStencilOpState
front
;
VkStencilOpState
back
;
float minDepthBounds
;
float maxDepthBounds
;
} VkPipelineDepthStencilStateCreateInfo;
Auto initialization
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO
The allocate
(allocate(Arena)
, allocate(Arena, long)
)
functions will automatically initialize these fields. Also, you may call autoInit()
to initialize these fields manually for non-allocated instances.
Contracts
The property segment()
should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)
), and properly aligned to
LAYOUT.byteAlignment()
bytes. To represent null pointer, you may use a Java
null
instead. See the documentation of IPointer.segment()
for more details.
The constructor of this class is marked as UnsafeConstructor
, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents a pointer to / an array ofVkPipelineDepthStencilStateCreateInfo
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final StructLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final StructLayout
static final ValueLayout.OfFloat
static final ValueLayout.OfFloat
static final AddressLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkPipelineDepthStencilStateCreateInfo
(@NotNull MemorySegment segment) Creates an instance of aVkPipelineDepthStencilStateCreateInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
autoInit()
@NotNull VkStencilOpState
back()
back
(@NotNull VkStencilOpState value) back
(Consumer<@NotNull VkStencilOpState> consumer) clone
(Arena arena, VkPipelineDepthStencilStateCreateInfo src) int
depthBoundsTestEnable
(int value) int
depthCompareOp
(int value) int
depthTestEnable
(int value) int
depthWriteEnable
(int value) final boolean
Indicates whether some other object is "equal to" this one.int
flags()
flags
(int value) @NotNull VkStencilOpState
front()
front
(@NotNull VkStencilOpState value) front
(Consumer<@NotNull VkStencilOpState> consumer) final int
hashCode()
Returns a hash code value for this object.float
maxDepthBounds
(float value) float
minDepthBounds
(float value) pNext()
void
pNext
(MemorySegment value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.int
stencilTestEnable
(int value) int
sType()
sType
(int value) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$sType
-
PATH$pNext
-
PATH$flags
-
PATH$depthTestEnable
-
PATH$depthWriteEnable
-
PATH$depthCompareOp
-
PATH$depthBoundsTestEnable
-
PATH$stencilTestEnable
-
PATH$front
-
PATH$back
-
PATH$minDepthBounds
-
PATH$maxDepthBounds
-
LAYOUT$sType
-
LAYOUT$pNext
-
LAYOUT$flags
-
LAYOUT$depthTestEnable
-
LAYOUT$depthWriteEnable
-
LAYOUT$depthCompareOp
-
LAYOUT$depthBoundsTestEnable
-
LAYOUT$stencilTestEnable
-
LAYOUT$front
-
LAYOUT$back
-
LAYOUT$minDepthBounds
-
LAYOUT$maxDepthBounds
-
SIZE$sType
public static final long SIZE$sType -
SIZE$pNext
public static final long SIZE$pNext -
SIZE$flags
public static final long SIZE$flags -
SIZE$depthTestEnable
public static final long SIZE$depthTestEnable -
SIZE$depthWriteEnable
public static final long SIZE$depthWriteEnable -
SIZE$depthCompareOp
public static final long SIZE$depthCompareOp -
SIZE$depthBoundsTestEnable
public static final long SIZE$depthBoundsTestEnable -
SIZE$stencilTestEnable
public static final long SIZE$stencilTestEnable -
SIZE$front
public static final long SIZE$front -
SIZE$back
public static final long SIZE$back -
SIZE$minDepthBounds
public static final long SIZE$minDepthBounds -
SIZE$maxDepthBounds
public static final long SIZE$maxDepthBounds -
OFFSET$sType
public static final long OFFSET$sType -
OFFSET$pNext
public static final long OFFSET$pNext -
OFFSET$flags
public static final long OFFSET$flags -
OFFSET$depthTestEnable
public static final long OFFSET$depthTestEnable -
OFFSET$depthWriteEnable
public static final long OFFSET$depthWriteEnable -
OFFSET$depthCompareOp
public static final long OFFSET$depthCompareOp -
OFFSET$depthBoundsTestEnable
public static final long OFFSET$depthBoundsTestEnable -
OFFSET$stencilTestEnable
public static final long OFFSET$stencilTestEnable -
OFFSET$front
public static final long OFFSET$front -
OFFSET$back
public static final long OFFSET$back -
OFFSET$minDepthBounds
public static final long OFFSET$minDepthBounds -
OFFSET$maxDepthBounds
public static final long OFFSET$maxDepthBounds
-
-
Constructor Details
-
VkPipelineDepthStencilStateCreateInfo
Creates an instance of aVkPipelineDepthStencilStateCreateInfo
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static VkPipelineDepthStencilStateCreateInfo clone(Arena arena, VkPipelineDepthStencilStateCreateInfo src) -
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
-
pNext
-
flags
-
flags
public VkPipelineDepthStencilStateCreateInfo flags(@EnumType(VkPipelineDepthStencilStateCreateFlags.class) int value) -
depthTestEnable
-
depthTestEnable
public VkPipelineDepthStencilStateCreateInfo depthTestEnable(@NativeType("VkBool32") @Unsigned int value) -
depthWriteEnable
-
depthWriteEnable
public VkPipelineDepthStencilStateCreateInfo depthWriteEnable(@NativeType("VkBool32") @Unsigned int value) -
depthCompareOp
-
depthCompareOp
-
depthBoundsTestEnable
-
depthBoundsTestEnable
public VkPipelineDepthStencilStateCreateInfo depthBoundsTestEnable(@NativeType("VkBool32") @Unsigned int value) -
stencilTestEnable
-
stencilTestEnable
public VkPipelineDepthStencilStateCreateInfo stencilTestEnable(@NativeType("VkBool32") @Unsigned int value) -
front
-
front
-
front
-
back
-
back
-
back
-
minDepthBounds
public float minDepthBounds() -
minDepthBounds
-
maxDepthBounds
public float maxDepthBounds() -
maxDepthBounds
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
segment
Returns the value of thesegment
record component.
-