Package org.lwjgl.vulkan
Class VkPipelineRasterizationLineStateCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineRasterizationLineStateCreateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkPipelineRasterizationLineStateCreateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying parameters of a newly created pipeline line rasterization state.Valid Usage
- If
lineRasterizationMode
isLINE_RASTERIZATION_MODE_RECTANGULAR_EXT
, then the rectangularLines feature must be enabled - If
lineRasterizationMode
isLINE_RASTERIZATION_MODE_BRESENHAM_EXT
, then the bresenhamLines feature must be enabled - If
lineRasterizationMode
isLINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT
, then the smoothLines feature must be enabled - If
stippledLineEnable
isTRUE
andlineRasterizationMode
isLINE_RASTERIZATION_MODE_RECTANGULAR_EXT
, then the stippledRectangularLines feature must be enabled - If
stippledLineEnable
isTRUE
andlineRasterizationMode
isLINE_RASTERIZATION_MODE_BRESENHAM_EXT
, then the stippledBresenhamLines feature must be enabled - If
stippledLineEnable
isTRUE
andlineRasterizationMode
isLINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT
, then the stippledSmoothLines feature must be enabled - If
stippledLineEnable
isTRUE
andlineRasterizationMode
isLINE_RASTERIZATION_MODE_DEFAULT_EXT
, then the stippledRectangularLines feature must be enabled andVkPhysicalDeviceLimits
::strictLines
must beTRUE
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXT
lineRasterizationMode
must be a validVkLineRasterizationModeEXT
value
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.lineRasterizationMode
– selects the style of line rasterization and is of typeVkLineRasterizationModeEXT
.stippledLineEnable
– enables stippled line rasterization.lineStippleFactor
– the repeat factor used in stippled line rasterization.lineStipplePattern
– the bit pattern used in stippled line rasterization.
Layout
struct VkPipelineRasterizationLineStateCreateInfoEXT { VkStructureType sType; void const * pNext; VkLineRasterizationModeEXT lineRasterizationMode; VkBool32 stippledLineEnable; uint32_t lineStippleFactor; uint16_t lineStipplePattern; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPipelineRasterizationLineStateCreateInfoEXT.Buffer
An array ofVkPipelineRasterizationLineStateCreateInfoEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
LINERASTERIZATIONMODE
LINESTIPPLEFACTOR
LINESTIPPLEPATTERN
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STIPPLEDLINEENABLE
STYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineRasterizationLineStateCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkPipelineRasterizationLineStateCreateInfoEXT
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPipelineRasterizationLineStateCreateInfoEXT
calloc()
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT
instance allocated withmemCalloc
.static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer
calloc(int capacity)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Buffer
instance allocated withmemCalloc
.static VkPipelineRasterizationLineStateCreateInfoEXT
callocStack()
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer
callocStack(int capacity)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPipelineRasterizationLineStateCreateInfoEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPipelineRasterizationLineStateCreateInfoEXT
create()
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT
instance allocated withBufferUtils
.static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer
create(int capacity)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Buffer
instance allocated withBufferUtils
.static VkPipelineRasterizationLineStateCreateInfoEXT
create(long address)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT
instance for the specified memory address.static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer
create(long address, int capacity)
Create aVkPipelineRasterizationLineStateCreateInfoEXT.Buffer
instance at the specified memory.static VkPipelineRasterizationLineStateCreateInfoEXT
createSafe(long address)
static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer
createSafe(long address, int capacity)
int
lineRasterizationMode()
Returns the value of thelineRasterizationMode
field.VkPipelineRasterizationLineStateCreateInfoEXT
lineRasterizationMode(int value)
Sets the specified value to thelineRasterizationMode
field.int
lineStippleFactor()
Returns the value of thelineStippleFactor
field.VkPipelineRasterizationLineStateCreateInfoEXT
lineStippleFactor(int value)
Sets the specified value to thelineStippleFactor
field.short
lineStipplePattern()
Returns the value of thelineStipplePattern
field.VkPipelineRasterizationLineStateCreateInfoEXT
lineStipplePattern(short value)
Sets the specified value to thelineStipplePattern
field.static VkPipelineRasterizationLineStateCreateInfoEXT
malloc()
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT
instance allocated withmemAlloc
.static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer
malloc(int capacity)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Buffer
instance allocated withmemAlloc
.static VkPipelineRasterizationLineStateCreateInfoEXT
mallocStack()
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT
instance allocated on the thread-localMemoryStack
.static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer
mallocStack(int capacity)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkPipelineRasterizationLineStateCreateInfoEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT
instance allocated on the specifiedMemoryStack
.static int
nlineRasterizationMode(long struct)
Unsafe version oflineRasterizationMode()
.static void
nlineRasterizationMode(long struct, int value)
Unsafe version oflineRasterizationMode
.static int
nlineStippleFactor(long struct)
Unsafe version oflineStippleFactor()
.static void
nlineStippleFactor(long struct, int value)
Unsafe version oflineStippleFactor
.static short
nlineStipplePattern(long struct)
Unsafe version oflineStipplePattern()
.static void
nlineStipplePattern(long struct, short value)
Unsafe version oflineStipplePattern
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nstippledLineEnable(long struct)
Unsafe version ofstippledLineEnable()
.static void
nstippledLineEnable(long struct, int value)
Unsafe version ofstippledLineEnable
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkPipelineRasterizationLineStateCreateInfoEXT
pNext(long value)
Sets the specified value to thepNext
field.VkPipelineRasterizationLineStateCreateInfoEXT
set(int sType, long pNext, int lineRasterizationMode, boolean stippledLineEnable, int lineStippleFactor, short lineStipplePattern)
Initializes this struct with the specified values.VkPipelineRasterizationLineStateCreateInfoEXT
set(VkPipelineRasterizationLineStateCreateInfoEXT src)
Copies the specified struct data to this struct.int
sizeof()
boolean
stippledLineEnable()
Returns the value of thestippledLineEnable
field.VkPipelineRasterizationLineStateCreateInfoEXT
stippledLineEnable(boolean value)
Sets the specified value to thestippledLineEnable
field.int
sType()
Returns the value of thesType
field.VkPipelineRasterizationLineStateCreateInfoEXT
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkPipelineRasterizationLineStateCreateInfoEXT
public VkPipelineRasterizationLineStateCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkPipelineRasterizationLineStateCreateInfoEXT
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()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
lineRasterizationMode
public int lineRasterizationMode()
Returns the value of thelineRasterizationMode
field.
-
stippledLineEnable
public boolean stippledLineEnable()
Returns the value of thestippledLineEnable
field.
-
lineStippleFactor
public int lineStippleFactor()
Returns the value of thelineStippleFactor
field.
-
lineStipplePattern
public short lineStipplePattern()
Returns the value of thelineStipplePattern
field.
-
sType
public VkPipelineRasterizationLineStateCreateInfoEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPipelineRasterizationLineStateCreateInfoEXT pNext(long value)
Sets the specified value to thepNext
field.
-
lineRasterizationMode
public VkPipelineRasterizationLineStateCreateInfoEXT lineRasterizationMode(int value)
Sets the specified value to thelineRasterizationMode
field.
-
stippledLineEnable
public VkPipelineRasterizationLineStateCreateInfoEXT stippledLineEnable(boolean value)
Sets the specified value to thestippledLineEnable
field.
-
lineStippleFactor
public VkPipelineRasterizationLineStateCreateInfoEXT lineStippleFactor(int value)
Sets the specified value to thelineStippleFactor
field.
-
lineStipplePattern
public VkPipelineRasterizationLineStateCreateInfoEXT lineStipplePattern(short value)
Sets the specified value to thelineStipplePattern
field.
-
set
public VkPipelineRasterizationLineStateCreateInfoEXT set(int sType, long pNext, int lineRasterizationMode, boolean stippledLineEnable, int lineStippleFactor, short lineStipplePattern)
Initializes this struct with the specified values.
-
set
public VkPipelineRasterizationLineStateCreateInfoEXT set(VkPipelineRasterizationLineStateCreateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineRasterizationLineStateCreateInfoEXT malloc()
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPipelineRasterizationLineStateCreateInfoEXT calloc()
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPipelineRasterizationLineStateCreateInfoEXT create()
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT
instance allocated withBufferUtils
.
-
create
public static VkPipelineRasterizationLineStateCreateInfoEXT create(long address)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineRasterizationLineStateCreateInfoEXT createSafe(long address)
-
malloc
public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer create(int capacity)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkPipelineRasterizationLineStateCreateInfoEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPipelineRasterizationLineStateCreateInfoEXT mallocStack()
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPipelineRasterizationLineStateCreateInfoEXT callocStack()
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPipelineRasterizationLineStateCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPipelineRasterizationLineStateCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer mallocStack(int capacity)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer callocStack(int capacity)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType()
.
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext()
.
-
nlineRasterizationMode
public static int nlineRasterizationMode(long struct)
Unsafe version oflineRasterizationMode()
.
-
nstippledLineEnable
public static int nstippledLineEnable(long struct)
Unsafe version ofstippledLineEnable()
.
-
nlineStippleFactor
public static int nlineStippleFactor(long struct)
Unsafe version oflineStippleFactor()
.
-
nlineStipplePattern
public static short nlineStipplePattern(long struct)
Unsafe version oflineStipplePattern()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
nlineRasterizationMode
public static void nlineRasterizationMode(long struct, int value)
Unsafe version oflineRasterizationMode
.
-
nstippledLineEnable
public static void nstippledLineEnable(long struct, int value)
Unsafe version ofstippledLineEnable
.
-
nlineStippleFactor
public static void nlineStippleFactor(long struct, int value)
Unsafe version oflineStippleFactor
.
-
nlineStipplePattern
public static void nlineStipplePattern(long struct, short value)
Unsafe version oflineStipplePattern
.
-
-