Record Class VkPipelineRasterizationStateCreateInfo
- All Implemented Interfaces:
IPointer,IVkPipelineRasterizationStateCreateInfo
Represents a pointer to a VkPipelineRasterizationStateCreateInfo structure in native memory.
Structure
typedef struct VkPipelineRasterizationStateCreateInfo {
VkStructureType sType;
void const* pNext; // optional
VkPipelineRasterizationStateCreateFlags flags; // optional
VkBool32 depthClampEnable;
VkBool32 rasterizerDiscardEnable;
VkPolygonMode polygonMode;
VkCullModeFlags cullMode; // optional
VkFrontFace frontFace;
VkBool32 depthBiasEnable;
float depthBiasConstantFactor;
float depthBiasClamp;
float depthBiasSlopeFactor;
float lineWidth;
} VkPipelineRasterizationStateCreateInfo;
Auto initialization
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_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 ofVkPipelineRasterizationStateCreateInfostructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfFloatstatic final ValueLayout.OfFloatstatic final ValueLayout.OfIntstatic final ValueLayout.OfFloatstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfFloatstatic final AddressLayoutstatic final ValueLayout.OfIntstatic 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 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 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 longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkPipelineRasterizationStateCreateInfo(@NotNull MemorySegment segment) Creates an instance of aVkPipelineRasterizationStateCreateInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidautoInit()clone(Arena arena, VkPipelineRasterizationStateCreateInfo src) intcullMode()cullMode(int value) floatdepthBiasClamp(float value) floatdepthBiasConstantFactor(float value) intdepthBiasEnable(int value) floatdepthBiasSlopeFactor(float value) intdepthClampEnable(int value) final booleanIndicates whether some other object is "equal to" this one.intflags()flags(int value) intfrontFace(int value) final inthashCode()Returns a hash code value for this object.floatlineWidth(float value) @NotNull MemorySegmentpNext()pNext(@NotNull MemorySegment value) intpolygonMode(int value) intrasterizerDiscardEnable(int value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.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$depthClampEnable
-
PATH$rasterizerDiscardEnable
-
PATH$polygonMode
-
PATH$cullMode
-
PATH$frontFace
-
PATH$depthBiasEnable
-
PATH$depthBiasConstantFactor
-
PATH$depthBiasClamp
-
PATH$depthBiasSlopeFactor
-
PATH$lineWidth
-
LAYOUT$sType
-
LAYOUT$pNext
-
LAYOUT$flags
-
LAYOUT$depthClampEnable
-
LAYOUT$rasterizerDiscardEnable
-
LAYOUT$polygonMode
-
LAYOUT$cullMode
-
LAYOUT$frontFace
-
LAYOUT$depthBiasEnable
-
LAYOUT$depthBiasConstantFactor
-
LAYOUT$depthBiasClamp
-
LAYOUT$depthBiasSlopeFactor
-
LAYOUT$lineWidth
-
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$depthClampEnable
public static final long SIZE$depthClampEnable -
SIZE$rasterizerDiscardEnable
public static final long SIZE$rasterizerDiscardEnable -
SIZE$polygonMode
public static final long SIZE$polygonMode -
SIZE$cullMode
public static final long SIZE$cullMode -
SIZE$frontFace
public static final long SIZE$frontFace -
SIZE$depthBiasEnable
public static final long SIZE$depthBiasEnable -
SIZE$depthBiasConstantFactor
public static final long SIZE$depthBiasConstantFactor -
SIZE$depthBiasClamp
public static final long SIZE$depthBiasClamp -
SIZE$depthBiasSlopeFactor
public static final long SIZE$depthBiasSlopeFactor -
SIZE$lineWidth
public static final long SIZE$lineWidth -
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$depthClampEnable
public static final long OFFSET$depthClampEnable -
OFFSET$rasterizerDiscardEnable
public static final long OFFSET$rasterizerDiscardEnable -
OFFSET$polygonMode
public static final long OFFSET$polygonMode -
OFFSET$cullMode
public static final long OFFSET$cullMode -
OFFSET$frontFace
public static final long OFFSET$frontFace -
OFFSET$depthBiasEnable
public static final long OFFSET$depthBiasEnable -
OFFSET$depthBiasConstantFactor
public static final long OFFSET$depthBiasConstantFactor -
OFFSET$depthBiasClamp
public static final long OFFSET$depthBiasClamp -
OFFSET$depthBiasSlopeFactor
public static final long OFFSET$depthBiasSlopeFactor -
OFFSET$lineWidth
public static final long OFFSET$lineWidth
-
-
Constructor Details
-
VkPipelineRasterizationStateCreateInfo
Creates an instance of aVkPipelineRasterizationStateCreateInforecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static VkPipelineRasterizationStateCreateInfo clone(Arena arena, VkPipelineRasterizationStateCreateInfo src) -
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
public VkPipelineRasterizationStateCreateInfo pNext(@Pointer(comment="void*") @NotNull @NotNull MemorySegment value) -
pNext
-
flags
-
flags
public VkPipelineRasterizationStateCreateInfo flags(@Bitmask(VkPipelineRasterizationStateCreateFlags.class) int value) -
depthClampEnable
-
depthClampEnable
public VkPipelineRasterizationStateCreateInfo depthClampEnable(@NativeType("VkBool32") @Unsigned int value) -
rasterizerDiscardEnable
-
rasterizerDiscardEnable
public VkPipelineRasterizationStateCreateInfo rasterizerDiscardEnable(@NativeType("VkBool32") @Unsigned int value) -
polygonMode
-
polygonMode
-
cullMode
-
cullMode
-
frontFace
-
frontFace
-
depthBiasEnable
-
depthBiasEnable
public VkPipelineRasterizationStateCreateInfo depthBiasEnable(@NativeType("VkBool32") @Unsigned int value) -
depthBiasConstantFactor
public float depthBiasConstantFactor() -
depthBiasConstantFactor
-
depthBiasClamp
public float depthBiasClamp() -
depthBiasClamp
-
depthBiasSlopeFactor
public float depthBiasSlopeFactor() -
depthBiasSlopeFactor
-
lineWidth
public float lineWidth() -
lineWidth
-
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.
-