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.NativeResourceStructure specifying parameters of a newly created pipeline line rasterization state.Valid Usage
- If
lineRasterizationModeisLINE_RASTERIZATION_MODE_RECTANGULAR_EXT, then the rectangularLines feature must be enabled - If
lineRasterizationModeisLINE_RASTERIZATION_MODE_BRESENHAM_EXT, then the bresenhamLines feature must be enabled - If
lineRasterizationModeisLINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT, then the smoothLines feature must be enabled - If
stippledLineEnableisTRUEandlineRasterizationModeisLINE_RASTERIZATION_MODE_RECTANGULAR_EXT, then the stippledRectangularLines feature must be enabled - If
stippledLineEnableisTRUEandlineRasterizationModeisLINE_RASTERIZATION_MODE_BRESENHAM_EXT, then the stippledBresenhamLines feature must be enabled - If
stippledLineEnableisTRUEandlineRasterizationModeisLINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT, then the stippledSmoothLines feature must be enabled - If
stippledLineEnableisTRUEandlineRasterizationModeisLINE_RASTERIZATION_MODE_DEFAULT_EXT, then the stippledRectangularLines feature must be enabled andVkPhysicalDeviceLimits::strictLinesmust beTRUE
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXTlineRasterizationModemust be a validVkLineRasterizationModeEXTvalue
Member documentation
sType– the type of this structure.pNext–NULLor 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 classVkPipelineRasterizationLineStateCreateInfoEXT.BufferAn array ofVkPipelineRasterizationLineStateCreateInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intLINERASTERIZATIONMODE
LINESTIPPLEFACTOR
LINESTIPPLEPATTERN
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTIPPLEDLINEENABLE
STYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineRasterizationLineStateCreateInfoEXT(java.nio.ByteBuffer container)Creates aVkPipelineRasterizationLineStateCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPipelineRasterizationLineStateCreateInfoEXTcalloc()Returns a newVkPipelineRasterizationLineStateCreateInfoEXTinstance allocated withmemCalloc.static VkPipelineRasterizationLineStateCreateInfoEXT.Buffercalloc(int capacity)Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Bufferinstance allocated withmemCalloc.static VkPipelineRasterizationLineStateCreateInfoEXTcallocStack()Returns a newVkPipelineRasterizationLineStateCreateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineRasterizationLineStateCreateInfoEXT.BuffercallocStack(int capacity)Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineRasterizationLineStateCreateInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineRasterizationLineStateCreateInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineRasterizationLineStateCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineRasterizationLineStateCreateInfoEXTcreate()Returns a newVkPipelineRasterizationLineStateCreateInfoEXTinstance allocated withBufferUtils.static VkPipelineRasterizationLineStateCreateInfoEXT.Buffercreate(int capacity)Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Bufferinstance allocated withBufferUtils.static VkPipelineRasterizationLineStateCreateInfoEXTcreate(long address)Returns a newVkPipelineRasterizationLineStateCreateInfoEXTinstance for the specified memory address.static VkPipelineRasterizationLineStateCreateInfoEXT.Buffercreate(long address, int capacity)Create aVkPipelineRasterizationLineStateCreateInfoEXT.Bufferinstance at the specified memory.static VkPipelineRasterizationLineStateCreateInfoEXTcreateSafe(long address)static VkPipelineRasterizationLineStateCreateInfoEXT.BuffercreateSafe(long address, int capacity)intlineRasterizationMode()Returns the value of thelineRasterizationModefield.VkPipelineRasterizationLineStateCreateInfoEXTlineRasterizationMode(int value)Sets the specified value to thelineRasterizationModefield.intlineStippleFactor()Returns the value of thelineStippleFactorfield.VkPipelineRasterizationLineStateCreateInfoEXTlineStippleFactor(int value)Sets the specified value to thelineStippleFactorfield.shortlineStipplePattern()Returns the value of thelineStipplePatternfield.VkPipelineRasterizationLineStateCreateInfoEXTlineStipplePattern(short value)Sets the specified value to thelineStipplePatternfield.static VkPipelineRasterizationLineStateCreateInfoEXTmalloc()Returns a newVkPipelineRasterizationLineStateCreateInfoEXTinstance allocated withmemAlloc.static VkPipelineRasterizationLineStateCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkPipelineRasterizationLineStateCreateInfoEXTmallocStack()Returns a newVkPipelineRasterizationLineStateCreateInfoEXTinstance allocated on the thread-localMemoryStack.static VkPipelineRasterizationLineStateCreateInfoEXT.BuffermallocStack(int capacity)Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkPipelineRasterizationLineStateCreateInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineRasterizationLineStateCreateInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineRasterizationLineStateCreateInfoEXTinstance allocated on the specifiedMemoryStack.static intnlineRasterizationMode(long struct)Unsafe version oflineRasterizationMode().static voidnlineRasterizationMode(long struct, int value)Unsafe version oflineRasterizationMode.static intnlineStippleFactor(long struct)Unsafe version oflineStippleFactor().static voidnlineStippleFactor(long struct, int value)Unsafe version oflineStippleFactor.static shortnlineStipplePattern(long struct)Unsafe version oflineStipplePattern().static voidnlineStipplePattern(long struct, short value)Unsafe version oflineStipplePattern.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnstippledLineEnable(long struct)Unsafe version ofstippledLineEnable().static voidnstippledLineEnable(long struct, int value)Unsafe version ofstippledLineEnable.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkPipelineRasterizationLineStateCreateInfoEXTpNext(long value)Sets the specified value to thepNextfield.VkPipelineRasterizationLineStateCreateInfoEXTset(int sType, long pNext, int lineRasterizationMode, boolean stippledLineEnable, int lineStippleFactor, short lineStipplePattern)Initializes this struct with the specified values.VkPipelineRasterizationLineStateCreateInfoEXTset(VkPipelineRasterizationLineStateCreateInfoEXT src)Copies the specified struct data to this struct.intsizeof()booleanstippledLineEnable()Returns the value of thestippledLineEnablefield.VkPipelineRasterizationLineStateCreateInfoEXTstippledLineEnable(boolean value)Sets the specified value to thestippledLineEnablefield.intsType()Returns the value of thesTypefield.VkPipelineRasterizationLineStateCreateInfoEXTsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkPipelineRasterizationLineStateCreateInfoEXT
public VkPipelineRasterizationLineStateCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkPipelineRasterizationLineStateCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
lineRasterizationMode
public int lineRasterizationMode()
Returns the value of thelineRasterizationModefield.
-
stippledLineEnable
public boolean stippledLineEnable()
Returns the value of thestippledLineEnablefield.
-
lineStippleFactor
public int lineStippleFactor()
Returns the value of thelineStippleFactorfield.
-
lineStipplePattern
public short lineStipplePattern()
Returns the value of thelineStipplePatternfield.
-
sType
public VkPipelineRasterizationLineStateCreateInfoEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPipelineRasterizationLineStateCreateInfoEXT pNext(long value)
Sets the specified value to thepNextfield.
-
lineRasterizationMode
public VkPipelineRasterizationLineStateCreateInfoEXT lineRasterizationMode(int value)
Sets the specified value to thelineRasterizationModefield.
-
stippledLineEnable
public VkPipelineRasterizationLineStateCreateInfoEXT stippledLineEnable(boolean value)
Sets the specified value to thestippledLineEnablefield.
-
lineStippleFactor
public VkPipelineRasterizationLineStateCreateInfoEXT lineStippleFactor(int value)
Sets the specified value to thelineStippleFactorfield.
-
lineStipplePattern
public VkPipelineRasterizationLineStateCreateInfoEXT lineStipplePattern(short value)
Sets the specified value to thelineStipplePatternfield.
-
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 newVkPipelineRasterizationLineStateCreateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineRasterizationLineStateCreateInfoEXT calloc()
Returns a newVkPipelineRasterizationLineStateCreateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineRasterizationLineStateCreateInfoEXT create()
Returns a newVkPipelineRasterizationLineStateCreateInfoEXTinstance allocated withBufferUtils.
-
create
public static VkPipelineRasterizationLineStateCreateInfoEXT create(long address)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineRasterizationLineStateCreateInfoEXT createSafe(long address)
-
malloc
public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer create(int capacity)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkPipelineRasterizationLineStateCreateInfoEXT.Bufferinstance 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 newVkPipelineRasterizationLineStateCreateInfoEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPipelineRasterizationLineStateCreateInfoEXT callocStack()
Returns a newVkPipelineRasterizationLineStateCreateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPipelineRasterizationLineStateCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPipelineRasterizationLineStateCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXTinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer callocStack(int capacity)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-