Package org.lwjgl.vulkan
Class VkPipelineRasterizationStateRasterizationOrderAMD
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineRasterizationStateRasterizationOrderAMD
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkPipelineRasterizationStateRasterizationOrderAMD extends Struct
When theVK_AMD_rasterization_order
device extension is enabled the application can also chain aVkPipelineRasterizationStateRasterizationOrderAMD
structure to theVkPipelineRasterizationStateCreateInfo
structure through itspNext
member. This structure enables selecting the rasterization order to use when rendering with the corresponding graphics pipeline.Member documentation
sType
– the type of this structure. Must be:STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD
pNext
– reserved for use by extensionsrasterizationOrder
– the primitive rasterization order to use. One of:RASTERIZATION_ORDER_RELAXED_AMD
RASTERIZATION_ORDER_STRICT_AMD
Layout
struct VkPipelineRasterizationStateRasterizationOrderAMD { VkStructureType sType; const void * pNext; VkRasterizationOrderAMD rasterizationOrder; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
VkPipelineRasterizationStateRasterizationOrderAMD.Buffer
An array ofVkPipelineRasterizationStateRasterizationOrderAMD
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkPipelineRasterizationStateRasterizationOrderAMD(java.nio.ByteBuffer container)
Creates aVkPipelineRasterizationStateRasterizationOrderAMD
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkPipelineRasterizationStateRasterizationOrderAMD
public VkPipelineRasterizationStateRasterizationOrderAMD(java.nio.ByteBuffer container)
Creates aVkPipelineRasterizationStateRasterizationOrderAMD
instance at the current position of the specifiedByteBuffer
container. 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 Detail
-
sizeof
public int sizeof()
Description copied from class:Struct
Returns thesizeof(struct)
.
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
rasterizationOrder
public int rasterizationOrder()
Returns the value of therasterizationOrder
field.
-
sType
public VkPipelineRasterizationStateRasterizationOrderAMD sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPipelineRasterizationStateRasterizationOrderAMD pNext(long value)
Sets the specified value to thepNext
field.
-
rasterizationOrder
public VkPipelineRasterizationStateRasterizationOrderAMD rasterizationOrder(int value)
Sets the specified value to therasterizationOrder
field.
-
set
public VkPipelineRasterizationStateRasterizationOrderAMD set(int sType, long pNext, int rasterizationOrder)
Initializes this struct with the specified values.
-
nset
public VkPipelineRasterizationStateRasterizationOrderAMD nset(long struct)
Unsafe version ofset
.
-
set
public VkPipelineRasterizationStateRasterizationOrderAMD set(VkPipelineRasterizationStateRasterizationOrderAMD src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineRasterizationStateRasterizationOrderAMD malloc()
Returns a newVkPipelineRasterizationStateRasterizationOrderAMD
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPipelineRasterizationStateRasterizationOrderAMD calloc()
Returns a newVkPipelineRasterizationStateRasterizationOrderAMD
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPipelineRasterizationStateRasterizationOrderAMD create()
Returns a newVkPipelineRasterizationStateRasterizationOrderAMD
instance allocated withBufferUtils
.
-
create
public static VkPipelineRasterizationStateRasterizationOrderAMD create(long address)
Returns a newVkPipelineRasterizationStateRasterizationOrderAMD
instance for the specified memory address ornull
if the address isNULL
.
-
malloc
public static VkPipelineRasterizationStateRasterizationOrderAMD.Buffer malloc(int capacity)
Returns a newVkPipelineRasterizationStateRasterizationOrderAMD.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPipelineRasterizationStateRasterizationOrderAMD.Buffer calloc(int capacity)
Returns a newVkPipelineRasterizationStateRasterizationOrderAMD.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineRasterizationStateRasterizationOrderAMD.Buffer create(int capacity)
Returns a newVkPipelineRasterizationStateRasterizationOrderAMD.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineRasterizationStateRasterizationOrderAMD.Buffer create(long address, int capacity)
Create aVkPipelineRasterizationStateRasterizationOrderAMD.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static VkPipelineRasterizationStateRasterizationOrderAMD mallocStack()
Returns a newVkPipelineRasterizationStateRasterizationOrderAMD
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPipelineRasterizationStateRasterizationOrderAMD callocStack()
Returns a newVkPipelineRasterizationStateRasterizationOrderAMD
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPipelineRasterizationStateRasterizationOrderAMD mallocStack(MemoryStack stack)
Returns a newVkPipelineRasterizationStateRasterizationOrderAMD
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPipelineRasterizationStateRasterizationOrderAMD callocStack(MemoryStack stack)
Returns a newVkPipelineRasterizationStateRasterizationOrderAMD
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPipelineRasterizationStateRasterizationOrderAMD.Buffer mallocStack(int capacity)
Returns a newVkPipelineRasterizationStateRasterizationOrderAMD.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPipelineRasterizationStateRasterizationOrderAMD.Buffer callocStack(int capacity)
Returns a newVkPipelineRasterizationStateRasterizationOrderAMD.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPipelineRasterizationStateRasterizationOrderAMD.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkPipelineRasterizationStateRasterizationOrderAMD.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPipelineRasterizationStateRasterizationOrderAMD.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkPipelineRasterizationStateRasterizationOrderAMD.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-