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 record
Represents a pointer to / an array ofVkPipelineRasterizationStateCreateInfo
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final ValueLayout.OfFloat
static final ValueLayout.OfFloat
static final ValueLayout.OfInt
static final ValueLayout.OfFloat
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfFloat
static final AddressLayout
static final ValueLayout.OfInt
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 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 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
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkPipelineRasterizationStateCreateInfo
(@NotNull MemorySegment segment) Creates an instance of aVkPipelineRasterizationStateCreateInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
autoInit()
clone
(Arena arena, VkPipelineRasterizationStateCreateInfo src) int
cullMode()
cullMode
(int value) float
depthBiasClamp
(float value) float
depthBiasConstantFactor
(float value) int
depthBiasEnable
(int value) float
depthBiasSlopeFactor
(float value) int
depthClampEnable
(int value) final boolean
Indicates whether some other object is "equal to" this one.int
flags()
flags
(int value) int
frontFace
(int value) final int
hashCode()
Returns a hash code value for this object.float
lineWidth
(float value) pNext()
void
pNext
(MemorySegment value) int
polygonMode
(int value) int
rasterizerDiscardEnable
(int value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.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$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 aVkPipelineRasterizationStateCreateInfo
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static VkPipelineRasterizationStateCreateInfo clone(Arena arena, VkPipelineRasterizationStateCreateInfo src) -
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
-
pNext
-
flags
-
flags
public VkPipelineRasterizationStateCreateInfo flags(@EnumType(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 thesegment
record component.
-