Package org.lwjgl.vulkan
Class VkPhysicalDeviceTransformFeedbackFeaturesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceTransformFeedbackFeaturesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkPhysicalDeviceTransformFeedbackFeaturesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure describing transform feedback features that can be supported by an implementation.Description
If the
VkPhysicalDeviceTransformFeedbackFeaturesEXT
structure is included in thepNext
chain ofVkPhysicalDeviceFeatures2
, it is filled with values indicating whether each feature is supported.VkPhysicalDeviceTransformFeedbackFeaturesEXT
can also be used in thepNext
chain ofVkDeviceCreateInfo
to enable features.Valid Usage (Implicit)
Member documentation
transformFeedback
– indicates whether the implementation supports transform feedback and shader modules can declare theTransformFeedback
capability.geometryStreams
– indicates whether the implementation supports theGeometryStreams
SPIR-V capability.
Layout
struct VkPhysicalDeviceTransformFeedbackFeaturesEXT { VkStructureType sType; void * pNext; VkBool32 transformFeedback; VkBool32 geometryStreams; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
An array ofVkPhysicalDeviceTransformFeedbackFeaturesEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
GEOMETRYSTREAMS
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
TRANSFORMFEEDBACKThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceTransformFeedbackFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceTransformFeedbackFeaturesEXT
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceTransformFeedbackFeaturesEXT
calloc()
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT
instance allocated withmemCalloc
.static VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceTransformFeedbackFeaturesEXT
callocStack()
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceTransformFeedbackFeaturesEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceTransformFeedbackFeaturesEXT
create()
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT
instance allocated withBufferUtils
.static VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceTransformFeedbackFeaturesEXT
create(long address)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT
instance for the specified memory address.static VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
instance at the specified memory.static VkPhysicalDeviceTransformFeedbackFeaturesEXT
createSafe(long address)
static VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
createSafe(long address, int capacity)
boolean
geometryStreams()
Returns the value of thegeometryStreams
field.VkPhysicalDeviceTransformFeedbackFeaturesEXT
geometryStreams(boolean value)
Sets the specified value to thegeometryStreams
field.static VkPhysicalDeviceTransformFeedbackFeaturesEXT
malloc()
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT
instance allocated withmemAlloc
.static VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceTransformFeedbackFeaturesEXT
mallocStack()
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceTransformFeedbackFeaturesEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT
instance allocated on the specifiedMemoryStack
.static int
ngeometryStreams(long struct)
Unsafe version ofgeometryStreams()
.static void
ngeometryStreams(long struct, int value)
Unsafe version ofgeometryStreams
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.static int
ntransformFeedback(long struct)
Unsafe version oftransformFeedback()
.static void
ntransformFeedback(long struct, int value)
Unsafe version oftransformFeedback
.long
pNext()
Returns the value of thepNext
field.VkPhysicalDeviceTransformFeedbackFeaturesEXT
pNext(long value)
Sets the specified value to thepNext
field.VkPhysicalDeviceTransformFeedbackFeaturesEXT
set(int sType, long pNext, boolean transformFeedback, boolean geometryStreams)
Initializes this struct with the specified values.VkPhysicalDeviceTransformFeedbackFeaturesEXT
set(VkPhysicalDeviceTransformFeedbackFeaturesEXT src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPhysicalDeviceTransformFeedbackFeaturesEXT
sType(int value)
Sets the specified value to thesType
field.boolean
transformFeedback()
Returns the value of thetransformFeedback
field.VkPhysicalDeviceTransformFeedbackFeaturesEXT
transformFeedback(boolean value)
Sets the specified value to thetransformFeedback
field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceTransformFeedbackFeaturesEXT
public VkPhysicalDeviceTransformFeedbackFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceTransformFeedbackFeaturesEXT
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.
-
transformFeedback
public boolean transformFeedback()
Returns the value of thetransformFeedback
field.
-
geometryStreams
public boolean geometryStreams()
Returns the value of thegeometryStreams
field.
-
sType
public VkPhysicalDeviceTransformFeedbackFeaturesEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPhysicalDeviceTransformFeedbackFeaturesEXT pNext(long value)
Sets the specified value to thepNext
field.
-
transformFeedback
public VkPhysicalDeviceTransformFeedbackFeaturesEXT transformFeedback(boolean value)
Sets the specified value to thetransformFeedback
field.
-
geometryStreams
public VkPhysicalDeviceTransformFeedbackFeaturesEXT geometryStreams(boolean value)
Sets the specified value to thegeometryStreams
field.
-
set
public VkPhysicalDeviceTransformFeedbackFeaturesEXT set(int sType, long pNext, boolean transformFeedback, boolean geometryStreams)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceTransformFeedbackFeaturesEXT set(VkPhysicalDeviceTransformFeedbackFeaturesEXT src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceTransformFeedbackFeaturesEXT malloc()
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceTransformFeedbackFeaturesEXT calloc()
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceTransformFeedbackFeaturesEXT create()
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceTransformFeedbackFeaturesEXT create(long address)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceTransformFeedbackFeaturesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceTransformFeedbackFeaturesEXT mallocStack()
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceTransformFeedbackFeaturesEXT callocStack()
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceTransformFeedbackFeaturesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceTransformFeedbackFeaturesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceTransformFeedbackFeaturesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTransformFeedbackFeaturesEXT.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()
.
-
ntransformFeedback
public static int ntransformFeedback(long struct)
Unsafe version oftransformFeedback()
.
-
ngeometryStreams
public static int ngeometryStreams(long struct)
Unsafe version ofgeometryStreams()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
ntransformFeedback
public static void ntransformFeedback(long struct, int value)
Unsafe version oftransformFeedback
.
-
ngeometryStreams
public static void ngeometryStreams(long struct, int value)
Unsafe version ofgeometryStreams
.
-
-