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 recordRepresents a pointer to / an array ofVkPipelineDepthStencilStateCreateInfostructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final StructLayoutstatic final ValueLayout.OfFloatstatic final ValueLayout.OfFloatstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkPipelineDepthStencilStateCreateInfo(@NotNull MemorySegment segment) Creates an instance of aVkPipelineDepthStencilStateCreateInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidautoInit()@NotNull VkStencilOpStateback()back(@NotNull VkStencilOpState value) back(Consumer<@NotNull VkStencilOpState> consumer) clone(Arena arena, VkPipelineDepthStencilStateCreateInfo src) intdepthBoundsTestEnable(int value) intdepthCompareOp(int value) intdepthTestEnable(int value) intdepthWriteEnable(int value) final booleanIndicates whether some other object is "equal to" this one.intflags()flags(int value) @NotNull VkStencilOpStatefront()front(@NotNull VkStencilOpState value) front(Consumer<@NotNull VkStencilOpState> consumer) final inthashCode()Returns a hash code value for this object.floatmaxDepthBounds(float value) floatminDepthBounds(float value) @NotNull MemorySegmentpNext()pNext(@NotNull MemorySegment value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.intstencilTestEnable(int value) intsType()sType(int value) final StringtoString()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 aVkPipelineDepthStencilStateCreateInforecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static VkPipelineDepthStencilStateCreateInfo clone(Arena arena, VkPipelineDepthStencilStateCreateInfo src) -
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
public VkPipelineDepthStencilStateCreateInfo pNext(@Pointer(comment="void*") @NotNull @NotNull MemorySegment value) -
pNext
-
flags
-
flags
public VkPipelineDepthStencilStateCreateInfo flags(@Bitmask(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 thesegmentrecord component.
-