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.NativeResource
Structure describing the line rasterization features that can be supported by an implementation.Description
If the
VkPhysicalDeviceLineRasterizationFeaturesEXT
structure is included in thepNext
chain ofVkPhysicalDeviceFeatures2KHR
, it is filled with values indicating whether the feature is supported.VkPhysicalDeviceLineRasterizationFeaturesEXT
can also be used in thepNext
chain ofVkDeviceCreateInfo
to 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_EXT
lines, or withLINE_RASTERIZATION_MODE_DEFAULT_EXT
lines ifVkPhysicalDeviceLimits
::strictLines
isTRUE
.stippledBresenhamLines
– indicates whether the implementation supports stippled line rasterization withLINE_RASTERIZATION_MODE_BRESENHAM_EXT
lines.stippledSmoothLines
– indicates whether the implementation supports stippled line rasterization withLINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT
lines.
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 class
VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
An array ofVkPhysicalDeviceLineRasterizationFeaturesEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
BRESENHAMLINES
PNEXT
RECTANGULARLINESThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
SMOOTHLINES
STIPPLEDBRESENHAMLINES
STIPPLEDRECTANGULARLINES
STIPPLEDSMOOTHLINES
STYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceLineRasterizationFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceLineRasterizationFeaturesEXT
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
bresenhamLines()
Returns the value of thebresenhamLines
field.VkPhysicalDeviceLineRasterizationFeaturesEXT
bresenhamLines(boolean value)
Sets the specified value to thebresenhamLines
field.static VkPhysicalDeviceLineRasterizationFeaturesEXT
calloc()
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT
instance allocated withmemCalloc
.static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceLineRasterizationFeaturesEXT
callocStack()
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceLineRasterizationFeaturesEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceLineRasterizationFeaturesEXT
create()
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT
instance allocated withBufferUtils
.static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceLineRasterizationFeaturesEXT
create(long address)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT
instance for the specified memory address.static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
instance at the specified memory.static VkPhysicalDeviceLineRasterizationFeaturesEXT
createSafe(long address)
static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
createSafe(long address, int capacity)
static VkPhysicalDeviceLineRasterizationFeaturesEXT
malloc()
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT
instance allocated withmemAlloc
.static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceLineRasterizationFeaturesEXT
mallocStack()
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceLineRasterizationFeaturesEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT
instance allocated on the specifiedMemoryStack
.static int
nbresenhamLines(long struct)
Unsafe version ofbresenhamLines()
.static void
nbresenhamLines(long struct, int value)
Unsafe version ofbresenhamLines
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nrectangularLines(long struct)
Unsafe version ofrectangularLines()
.static void
nrectangularLines(long struct, int value)
Unsafe version ofrectangularLines
.static int
nsmoothLines(long struct)
Unsafe version ofsmoothLines()
.static void
nsmoothLines(long struct, int value)
Unsafe version ofsmoothLines
.static int
nstippledBresenhamLines(long struct)
Unsafe version ofstippledBresenhamLines()
.static void
nstippledBresenhamLines(long struct, int value)
Unsafe version ofstippledBresenhamLines
.static int
nstippledRectangularLines(long struct)
Unsafe version ofstippledRectangularLines()
.static void
nstippledRectangularLines(long struct, int value)
Unsafe version ofstippledRectangularLines
.static int
nstippledSmoothLines(long struct)
Unsafe version ofstippledSmoothLines()
.static void
nstippledSmoothLines(long struct, int value)
Unsafe version ofstippledSmoothLines
.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.VkPhysicalDeviceLineRasterizationFeaturesEXT
pNext(long value)
Sets the specified value to thepNext
field.boolean
rectangularLines()
Returns the value of therectangularLines
field.VkPhysicalDeviceLineRasterizationFeaturesEXT
rectangularLines(boolean value)
Sets the specified value to therectangularLines
field.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.VkPhysicalDeviceLineRasterizationFeaturesEXT
set(VkPhysicalDeviceLineRasterizationFeaturesEXT src)
Copies the specified struct data to this struct.int
sizeof()
boolean
smoothLines()
Returns the value of thesmoothLines
field.VkPhysicalDeviceLineRasterizationFeaturesEXT
smoothLines(boolean value)
Sets the specified value to thesmoothLines
field.boolean
stippledBresenhamLines()
Returns the value of thestippledBresenhamLines
field.VkPhysicalDeviceLineRasterizationFeaturesEXT
stippledBresenhamLines(boolean value)
Sets the specified value to thestippledBresenhamLines
field.boolean
stippledRectangularLines()
Returns the value of thestippledRectangularLines
field.VkPhysicalDeviceLineRasterizationFeaturesEXT
stippledRectangularLines(boolean value)
Sets the specified value to thestippledRectangularLines
field.boolean
stippledSmoothLines()
Returns the value of thestippledSmoothLines
field.VkPhysicalDeviceLineRasterizationFeaturesEXT
stippledSmoothLines(boolean value)
Sets the specified value to thestippledSmoothLines
field.int
sType()
Returns the value of thesType
field.VkPhysicalDeviceLineRasterizationFeaturesEXT
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceLineRasterizationFeaturesEXT
public VkPhysicalDeviceLineRasterizationFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceLineRasterizationFeaturesEXT
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.
-
rectangularLines
public boolean rectangularLines()
Returns the value of therectangularLines
field.
-
bresenhamLines
public boolean bresenhamLines()
Returns the value of thebresenhamLines
field.
-
smoothLines
public boolean smoothLines()
Returns the value of thesmoothLines
field.
-
stippledRectangularLines
public boolean stippledRectangularLines()
Returns the value of thestippledRectangularLines
field.
-
stippledBresenhamLines
public boolean stippledBresenhamLines()
Returns the value of thestippledBresenhamLines
field.
-
stippledSmoothLines
public boolean stippledSmoothLines()
Returns the value of thestippledSmoothLines
field.
-
sType
public VkPhysicalDeviceLineRasterizationFeaturesEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPhysicalDeviceLineRasterizationFeaturesEXT pNext(long value)
Sets the specified value to thepNext
field.
-
rectangularLines
public VkPhysicalDeviceLineRasterizationFeaturesEXT rectangularLines(boolean value)
Sets the specified value to therectangularLines
field.
-
bresenhamLines
public VkPhysicalDeviceLineRasterizationFeaturesEXT bresenhamLines(boolean value)
Sets the specified value to thebresenhamLines
field.
-
smoothLines
public VkPhysicalDeviceLineRasterizationFeaturesEXT smoothLines(boolean value)
Sets the specified value to thesmoothLines
field.
-
stippledRectangularLines
public VkPhysicalDeviceLineRasterizationFeaturesEXT stippledRectangularLines(boolean value)
Sets the specified value to thestippledRectangularLines
field.
-
stippledBresenhamLines
public VkPhysicalDeviceLineRasterizationFeaturesEXT stippledBresenhamLines(boolean value)
Sets the specified value to thestippledBresenhamLines
field.
-
stippledSmoothLines
public VkPhysicalDeviceLineRasterizationFeaturesEXT stippledSmoothLines(boolean value)
Sets the specified value to thestippledSmoothLines
field.
-
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 newVkPhysicalDeviceLineRasterizationFeaturesEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceLineRasterizationFeaturesEXT calloc()
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceLineRasterizationFeaturesEXT create()
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceLineRasterizationFeaturesEXT create(long address)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceLineRasterizationFeaturesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
instance 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 newVkPhysicalDeviceLineRasterizationFeaturesEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceLineRasterizationFeaturesEXT callocStack()
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceLineRasterizationFeaturesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceLineRasterizationFeaturesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceLineRasterizationFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.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()
.
-
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
.
-
-