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.Description
If
stippledLineEnableisFALSE, the values oflineStippleFactorandlineStipplePatternare ignored.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
Layout
struct VkPipelineRasterizationLineStateCreateInfoEXT { VkStructureTypesType(); void const *pNext(); VkLineRasterizationModeEXTlineRasterizationMode(); VkBool32stippledLineEnable(); uint32_tlineStippleFactor(); uint16_tlineStipplePattern(); }
-
-
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 Deprecated 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 VkPipelineRasterizationLineStateCreateInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineRasterizationLineStateCreateInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineRasterizationLineStateCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineRasterizationLineStateCreateInfoEXTcallocStack()Deprecated.static VkPipelineRasterizationLineStateCreateInfoEXT.BuffercallocStack(int capacity)Deprecated.static VkPipelineRasterizationLineStateCreateInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineRasterizationLineStateCreateInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()aVkLineRasterizationModeEXTvalue selecting the style of line rasterization.VkPipelineRasterizationLineStateCreateInfoEXTlineRasterizationMode(int value)Sets the specified value to thelineRasterizationMode()field.intlineStippleFactor()the repeat factor used in stippled line rasterization.VkPipelineRasterizationLineStateCreateInfoEXTlineStippleFactor(int value)Sets the specified value to thelineStippleFactor()field.shortlineStipplePattern()the bit pattern used in stippled line rasterization.VkPipelineRasterizationLineStateCreateInfoEXTlineStipplePattern(short value)Sets the specified value to thelineStipplePattern()field.static VkPipelineRasterizationLineStateCreateInfoEXTmalloc()Returns a newVkPipelineRasterizationLineStateCreateInfoEXTinstance allocated withmemAlloc.static VkPipelineRasterizationLineStateCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkPipelineRasterizationLineStateCreateInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineRasterizationLineStateCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineRasterizationLineStateCreateInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineRasterizationLineStateCreateInfoEXTinstance allocated on the specifiedMemoryStack.static VkPipelineRasterizationLineStateCreateInfoEXTmallocStack()Deprecated.static VkPipelineRasterizationLineStateCreateInfoEXT.BuffermallocStack(int capacity)Deprecated.static VkPipelineRasterizationLineStateCreateInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineRasterizationLineStateCreateInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()NULLor a pointer to a structure extending this structure.VkPipelineRasterizationLineStateCreateInfoEXTpNext(long value)Sets the specified value to thepNext()field.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()enables stippled line rasterization.VkPipelineRasterizationLineStateCreateInfoEXTstippledLineEnable(boolean value)Sets the specified value to thestippledLineEnable()field.intsType()the type of this structure.VkPipelineRasterizationLineStateCreateInfoEXTsType(int value)Sets the specified value to thesType()field.VkPipelineRasterizationLineStateCreateInfoEXTsType$Default()Sets theSTRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXTvalue to thesType()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
lineRasterizationMode
public int lineRasterizationMode()
aVkLineRasterizationModeEXTvalue selecting the style of line rasterization.
-
stippledLineEnable
public boolean stippledLineEnable()
enables stippled line rasterization.
-
lineStippleFactor
public int lineStippleFactor()
the repeat factor used in stippled line rasterization.
-
lineStipplePattern
public short lineStipplePattern()
the bit pattern used in stippled line rasterization.
-
sType
public VkPipelineRasterizationLineStateCreateInfoEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPipelineRasterizationLineStateCreateInfoEXT sType$Default()
Sets theSTRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXTvalue 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 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
@Deprecated public static VkPipelineRasterizationLineStateCreateInfoEXT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineRasterizationLineStateCreateInfoEXT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineRasterizationLineStateCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineRasterizationLineStateCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPipelineRasterizationLineStateCreateInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRasterizationLineStateCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPipelineRasterizationLineStateCreateInfoEXT calloc(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
-
malloc
public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer malloc(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
-
calloc
public static VkPipelineRasterizationLineStateCreateInfoEXT.Buffer calloc(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.
-
-