Package org.lwjgl.vulkan
Class VkPipelineRasterizationLineStateCreateInfoKHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkPipelineRasterizationLineStateCreateInfoKHR>
org.lwjgl.vulkan.VkPipelineRasterizationLineStateCreateInfoKHR
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPipelineRasterizationLineStateCreateInfoEXT
public class VkPipelineRasterizationLineStateCreateInfoKHR
extends org.lwjgl.system.Struct<VkPipelineRasterizationLineStateCreateInfoKHR>
implements org.lwjgl.system.NativeResource
Structure specifying parameters of a newly created pipeline line rasterization state.
Description
If stippledLineEnable is FALSE, the values of lineStippleFactor and lineStipplePattern are ignored.
Valid Usage
- If
lineRasterizationModeisLINE_RASTERIZATION_MODE_RECTANGULAR_KHR, then therectangularLinesfeature must be enabled - If
lineRasterizationModeisLINE_RASTERIZATION_MODE_BRESENHAM_KHR, then thebresenhamLinesfeature must be enabled - If
lineRasterizationModeisLINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_KHR, then thesmoothLinesfeature must be enabled - If
stippledLineEnableisTRUEandlineRasterizationModeisLINE_RASTERIZATION_MODE_RECTANGULAR_KHR, then thestippledRectangularLinesfeature must be enabled - If
stippledLineEnableisTRUEandlineRasterizationModeisLINE_RASTERIZATION_MODE_BRESENHAM_KHR, then thestippledBresenhamLinesfeature must be enabled - If
stippledLineEnableisTRUEandlineRasterizationModeisLINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_KHR, then thestippledSmoothLinesfeature must be enabled - If
stippledLineEnableisTRUEandlineRasterizationModeisLINE_RASTERIZATION_MODE_DEFAULT_KHR, then thestippledRectangularLinesfeature must be enabled andVkPhysicalDeviceLimits::strictLinesmust beTRUE
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_KHRlineRasterizationModemust be a validVkLineRasterizationModeKHRvalue
Layout
struct VkPipelineRasterizationLineStateCreateInfoKHR {
VkStructureType sType();
void const * pNext();
VkLineRasterizationModeKHR lineRasterizationMode();
VkBool32 stippledLineEnable();
uint32_t lineStippleFactor();
uint16_t lineStipplePattern();
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkPipelineRasterizationLineStateCreateInfoKHRstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCreates aVkPipelineRasterizationLineStateCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkPipelineRasterizationLineStateCreateInfoKHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkPipelineRasterizationLineStateCreateInfoKHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkPipelineRasterizationLineStateCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newVkPipelineRasterizationLineStateCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkPipelineRasterizationLineStateCreateInfoKHRinstance allocated withBufferUtils.create(int capacity) Returns a newVkPipelineRasterizationLineStateCreateInfoKHR.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkPipelineRasterizationLineStateCreateInfoKHRinstance for the specified memory address.create(long address, int capacity) Create aVkPipelineRasterizationLineStateCreateInfoKHR.Bufferinstance at the specified memory.createSafe(long address) createSafe(long address, int capacity) intaVkLineRasterizationModeKHRvalue selecting the style of line rasterization.lineRasterizationMode(int value) Sets the specified value to thelineRasterizationMode()field.intthe repeat factor used in stippled line rasterization.lineStippleFactor(int value) Sets the specified value to thelineStippleFactor()field.shortthe bit pattern used in stippled line rasterization.lineStipplePattern(short value) Sets the specified value to thelineStipplePattern()field.malloc()Returns a newVkPipelineRasterizationLineStateCreateInfoKHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkPipelineRasterizationLineStateCreateInfoKHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkPipelineRasterizationLineStateCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newVkPipelineRasterizationLineStateCreateInfoKHRinstance 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()NULLor a pointer to a structure extending this structure.pNext(long value) Sets the specified value to thepNext()field.set(int sType, long pNext, int lineRasterizationMode, boolean stippledLineEnable, int lineStippleFactor, short lineStipplePattern) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()booleanenables stippled line rasterization.stippledLineEnable(boolean value) Sets the specified value to thestippledLineEnable()field.intsType()aVkStructureTypevalue identifying this structure.sType(int value) Sets the specified value to thesType()field.Sets theSTRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_KHRvalue to thesType()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
LINERASTERIZATIONMODE
public static final int LINERASTERIZATIONMODEThe struct member offsets. -
STIPPLEDLINEENABLE
public static final int STIPPLEDLINEENABLEThe struct member offsets. -
LINESTIPPLEFACTOR
public static final int LINESTIPPLEFACTORThe struct member offsets. -
LINESTIPPLEPATTERN
public static final int LINESTIPPLEPATTERNThe struct member offsets.
-
-
Constructor Details
-
VkPipelineRasterizationLineStateCreateInfoKHR
Creates aVkPipelineRasterizationLineStateCreateInfoKHRinstance 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkPipelineRasterizationLineStateCreateInfoKHR>
-
sType
public int sType()aVkStructureTypevalue identifying this structure. -
pNext
public long pNext()NULLor a pointer to a structure extending this structure. -
lineRasterizationMode
public int lineRasterizationMode()aVkLineRasterizationModeKHRvalue 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
Sets the specified value to thesType()field. -
sType$Default
Sets theSTRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_KHRvalue to thesType()field. -
pNext
Sets the specified value to thepNext()field. -
lineRasterizationMode
Sets the specified value to thelineRasterizationMode()field. -
stippledLineEnable
Sets the specified value to thestippledLineEnable()field. -
lineStippleFactor
Sets the specified value to thelineStippleFactor()field. -
lineStipplePattern
Sets the specified value to thelineStipplePattern()field. -
set
public VkPipelineRasterizationLineStateCreateInfoKHR set(int sType, long pNext, int lineRasterizationMode, boolean stippledLineEnable, int lineStippleFactor, short lineStipplePattern) Initializes this struct with the specified values. -
set
public VkPipelineRasterizationLineStateCreateInfoKHR set(VkPipelineRasterizationLineStateCreateInfoKHR src) Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkPipelineRasterizationLineStateCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkPipelineRasterizationLineStateCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkPipelineRasterizationLineStateCreateInfoKHRinstance allocated withBufferUtils. -
create
Returns a newVkPipelineRasterizationLineStateCreateInfoKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkPipelineRasterizationLineStateCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkPipelineRasterizationLineStateCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkPipelineRasterizationLineStateCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineRasterizationLineStateCreateInfoKHR.Buffer create(long address, int capacity) Create aVkPipelineRasterizationLineStateCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPipelineRasterizationLineStateCreateInfoKHR.Buffer createSafe(long address, int capacity) -
malloc
public static VkPipelineRasterizationLineStateCreateInfoKHR malloc(org.lwjgl.system.MemoryStack stack) Returns a newVkPipelineRasterizationLineStateCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPipelineRasterizationLineStateCreateInfoKHR calloc(org.lwjgl.system.MemoryStack stack) Returns a newVkPipelineRasterizationLineStateCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPipelineRasterizationLineStateCreateInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkPipelineRasterizationLineStateCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkPipelineRasterizationLineStateCreateInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkPipelineRasterizationLineStateCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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.
-