Package org.lwjgl.vulkan
Class VkPhysicalDeviceLineRasterizationFeaturesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceLineRasterizationFeaturesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceLineRasterizationFeaturesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing the line rasterization features that can be supported by an implementation.Description
If the
VkPhysicalDeviceLineRasterizationFeaturesEXTstructure is included in thepNextchain ofVkPhysicalDeviceFeatures2KHR, it is filled with values indicating whether the feature is supported.VkPhysicalDeviceLineRasterizationFeaturesEXTcan also be used in thepNextchain ofVkDeviceCreateInfoto enable the feature.Valid Usage (Implicit)
Member documentation
rectangularLines– indicates whether the implementation supports rectangular line rasterization.bresenhamLines– indicates whether the implementation supports Bresenham-style line rasterization.smoothLines– indicates whether the implementation supports smooth line rasterization.stippledRectangularLines– indicates whether the implementation supports stippled line rasterization withLINE_RASTERIZATION_MODE_RECTANGULAR_EXTlines, or withLINE_RASTERIZATION_MODE_DEFAULT_EXTlines ifVkPhysicalDeviceLimits::strictLinesisTRUE.stippledBresenhamLines– indicates whether the implementation supports stippled line rasterization withLINE_RASTERIZATION_MODE_BRESENHAM_EXTlines.stippledSmoothLines– indicates whether the implementation supports stippled line rasterization withLINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXTlines.
Layout
struct VkPhysicalDeviceLineRasterizationFeaturesEXT { VkStructureType sType; void * pNext; VkBool32 rectangularLines; VkBool32 bresenhamLines; VkBool32 smoothLines; VkBool32 stippledRectangularLines; VkBool32 stippledBresenhamLines; VkBool32 stippledSmoothLines; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceLineRasterizationFeaturesEXT.BufferAn array ofVkPhysicalDeviceLineRasterizationFeaturesEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBRESENHAMLINES
PNEXT
RECTANGULARLINESThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSMOOTHLINES
STIPPLEDBRESENHAMLINES
STIPPLEDRECTANGULARLINES
STIPPLEDSMOOTHLINES
STYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceLineRasterizationFeaturesEXT(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceLineRasterizationFeaturesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbresenhamLines()Returns the value of thebresenhamLinesfield.VkPhysicalDeviceLineRasterizationFeaturesEXTbresenhamLines(boolean value)Sets the specified value to thebresenhamLinesfield.static VkPhysicalDeviceLineRasterizationFeaturesEXTcalloc()Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXTinstance allocated withmemCalloc.static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceLineRasterizationFeaturesEXTcallocStack()Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceLineRasterizationFeaturesEXT.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceLineRasterizationFeaturesEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceLineRasterizationFeaturesEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceLineRasterizationFeaturesEXTcreate()Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXTinstance allocated withBufferUtils.static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffercreate(int capacity)Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceLineRasterizationFeaturesEXTcreate(long address)Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXTinstance for the specified memory address.static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceLineRasterizationFeaturesEXT.Bufferinstance at the specified memory.static VkPhysicalDeviceLineRasterizationFeaturesEXTcreateSafe(long address)static VkPhysicalDeviceLineRasterizationFeaturesEXT.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceLineRasterizationFeaturesEXTmalloc()Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXTinstance allocated withmemAlloc.static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceLineRasterizationFeaturesEXTmallocStack()Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXTinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceLineRasterizationFeaturesEXT.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceLineRasterizationFeaturesEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceLineRasterizationFeaturesEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXTinstance allocated on the specifiedMemoryStack.static intnbresenhamLines(long struct)Unsafe version ofbresenhamLines().static voidnbresenhamLines(long struct, int value)Unsafe version ofbresenhamLines.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnrectangularLines(long struct)Unsafe version ofrectangularLines().static voidnrectangularLines(long struct, int value)Unsafe version ofrectangularLines.static intnsmoothLines(long struct)Unsafe version ofsmoothLines().static voidnsmoothLines(long struct, int value)Unsafe version ofsmoothLines.static intnstippledBresenhamLines(long struct)Unsafe version ofstippledBresenhamLines().static voidnstippledBresenhamLines(long struct, int value)Unsafe version ofstippledBresenhamLines.static intnstippledRectangularLines(long struct)Unsafe version ofstippledRectangularLines().static voidnstippledRectangularLines(long struct, int value)Unsafe version ofstippledRectangularLines.static intnstippledSmoothLines(long struct)Unsafe version ofstippledSmoothLines().static voidnstippledSmoothLines(long struct, int value)Unsafe version ofstippledSmoothLines.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkPhysicalDeviceLineRasterizationFeaturesEXTpNext(long value)Sets the specified value to thepNextfield.booleanrectangularLines()Returns the value of therectangularLinesfield.VkPhysicalDeviceLineRasterizationFeaturesEXTrectangularLines(boolean value)Sets the specified value to therectangularLinesfield.VkPhysicalDeviceLineRasterizationFeaturesEXTset(int sType, long pNext, boolean rectangularLines, boolean bresenhamLines, boolean smoothLines, boolean stippledRectangularLines, boolean stippledBresenhamLines, boolean stippledSmoothLines)Initializes this struct with the specified values.VkPhysicalDeviceLineRasterizationFeaturesEXTset(VkPhysicalDeviceLineRasterizationFeaturesEXT src)Copies the specified struct data to this struct.intsizeof()booleansmoothLines()Returns the value of thesmoothLinesfield.VkPhysicalDeviceLineRasterizationFeaturesEXTsmoothLines(boolean value)Sets the specified value to thesmoothLinesfield.booleanstippledBresenhamLines()Returns the value of thestippledBresenhamLinesfield.VkPhysicalDeviceLineRasterizationFeaturesEXTstippledBresenhamLines(boolean value)Sets the specified value to thestippledBresenhamLinesfield.booleanstippledRectangularLines()Returns the value of thestippledRectangularLinesfield.VkPhysicalDeviceLineRasterizationFeaturesEXTstippledRectangularLines(boolean value)Sets the specified value to thestippledRectangularLinesfield.booleanstippledSmoothLines()Returns the value of thestippledSmoothLinesfield.VkPhysicalDeviceLineRasterizationFeaturesEXTstippledSmoothLines(boolean value)Sets the specified value to thestippledSmoothLinesfield.intsType()Returns the value of thesTypefield.VkPhysicalDeviceLineRasterizationFeaturesEXTsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceLineRasterizationFeaturesEXT
public VkPhysicalDeviceLineRasterizationFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceLineRasterizationFeaturesEXTinstance 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.
-
rectangularLines
public boolean rectangularLines()
Returns the value of therectangularLinesfield.
-
bresenhamLines
public boolean bresenhamLines()
Returns the value of thebresenhamLinesfield.
-
smoothLines
public boolean smoothLines()
Returns the value of thesmoothLinesfield.
-
stippledRectangularLines
public boolean stippledRectangularLines()
Returns the value of thestippledRectangularLinesfield.
-
stippledBresenhamLines
public boolean stippledBresenhamLines()
Returns the value of thestippledBresenhamLinesfield.
-
stippledSmoothLines
public boolean stippledSmoothLines()
Returns the value of thestippledSmoothLinesfield.
-
sType
public VkPhysicalDeviceLineRasterizationFeaturesEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceLineRasterizationFeaturesEXT pNext(long value)
Sets the specified value to thepNextfield.
-
rectangularLines
public VkPhysicalDeviceLineRasterizationFeaturesEXT rectangularLines(boolean value)
Sets the specified value to therectangularLinesfield.
-
bresenhamLines
public VkPhysicalDeviceLineRasterizationFeaturesEXT bresenhamLines(boolean value)
Sets the specified value to thebresenhamLinesfield.
-
smoothLines
public VkPhysicalDeviceLineRasterizationFeaturesEXT smoothLines(boolean value)
Sets the specified value to thesmoothLinesfield.
-
stippledRectangularLines
public VkPhysicalDeviceLineRasterizationFeaturesEXT stippledRectangularLines(boolean value)
Sets the specified value to thestippledRectangularLinesfield.
-
stippledBresenhamLines
public VkPhysicalDeviceLineRasterizationFeaturesEXT stippledBresenhamLines(boolean value)
Sets the specified value to thestippledBresenhamLinesfield.
-
stippledSmoothLines
public VkPhysicalDeviceLineRasterizationFeaturesEXT stippledSmoothLines(boolean value)
Sets the specified value to thestippledSmoothLinesfield.
-
set
public VkPhysicalDeviceLineRasterizationFeaturesEXT set(int sType, long pNext, boolean rectangularLines, boolean bresenhamLines, boolean smoothLines, boolean stippledRectangularLines, boolean stippledBresenhamLines, boolean stippledSmoothLines)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceLineRasterizationFeaturesEXT set(VkPhysicalDeviceLineRasterizationFeaturesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceLineRasterizationFeaturesEXT malloc()
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceLineRasterizationFeaturesEXT calloc()
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceLineRasterizationFeaturesEXT create()
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXTinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceLineRasterizationFeaturesEXT create(long address)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceLineRasterizationFeaturesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceLineRasterizationFeaturesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceLineRasterizationFeaturesEXT mallocStack()
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceLineRasterizationFeaturesEXT callocStack()
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceLineRasterizationFeaturesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceLineRasterizationFeaturesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.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().
-
nrectangularLines
public static int nrectangularLines(long struct)
Unsafe version ofrectangularLines().
-
nbresenhamLines
public static int nbresenhamLines(long struct)
Unsafe version ofbresenhamLines().
-
nsmoothLines
public static int nsmoothLines(long struct)
Unsafe version ofsmoothLines().
-
nstippledRectangularLines
public static int nstippledRectangularLines(long struct)
Unsafe version ofstippledRectangularLines().
-
nstippledBresenhamLines
public static int nstippledBresenhamLines(long struct)
Unsafe version ofstippledBresenhamLines().
-
nstippledSmoothLines
public static int nstippledSmoothLines(long struct)
Unsafe version ofstippledSmoothLines().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nrectangularLines
public static void nrectangularLines(long struct, int value)Unsafe version ofrectangularLines.
-
nbresenhamLines
public static void nbresenhamLines(long struct, int value)Unsafe version ofbresenhamLines.
-
nsmoothLines
public static void nsmoothLines(long struct, int value)Unsafe version ofsmoothLines.
-
nstippledRectangularLines
public static void nstippledRectangularLines(long struct, int value)Unsafe version ofstippledRectangularLines.
-
nstippledBresenhamLines
public static void nstippledBresenhamLines(long struct, int value)Unsafe version ofstippledBresenhamLines.
-
nstippledSmoothLines
public static void nstippledSmoothLines(long struct, int value)Unsafe version ofstippledSmoothLines.
-
-