Package org.lwjgl.vulkan
Class VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing the texel buffer alignment features that can be supported by an implementation.Description
If the
VkPhysicalDeviceTexelBufferAlignmentFeaturesEXTstructure is included in thepNextchain ofVkPhysicalDeviceFeatures2, it is filled with values indicating whether the feature is supported.VkPhysicalDeviceTexelBufferAlignmentFeaturesEXTcan also be used in thepNextchain ofVkDeviceCreateInfoto enable the feature.Valid Usage (Implicit)
Member documentation
texelBufferAlignment– indicates whether the implementation uses more specific alignment requirements advertised inVkPhysicalDeviceTexelBufferAlignmentPropertiesEXTrather thanVkPhysicalDeviceLimits::minTexelBufferOffsetAlignment.
Layout
struct VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT { VkStructureType sType; void * pNext; VkBool32 texelBufferAlignment; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.BufferAn array ofVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
TEXELBUFFERALIGNMENTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXTcalloc()Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTinstance allocated withmemCalloc.static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXTcallocStack()Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXTcreate()Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTinstance allocated withBufferUtils.static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Buffercreate(int capacity)Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXTcreate(long address)Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTinstance for the specified memory address.static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Bufferinstance at the specified memory.static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXTcreateSafe(long address)static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXTmalloc()Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTinstance allocated withmemAlloc.static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXTmallocStack()Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intntexelBufferAlignment(long struct)Unsafe version oftexelBufferAlignment().static voidntexelBufferAlignment(long struct, int value)Unsafe version oftexelBufferAlignment.longpNext()Returns the value of thepNextfield.VkPhysicalDeviceTexelBufferAlignmentFeaturesEXTpNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceTexelBufferAlignmentFeaturesEXTset(int sType, long pNext, boolean texelBufferAlignment)Initializes this struct with the specified values.VkPhysicalDeviceTexelBufferAlignmentFeaturesEXTset(VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPhysicalDeviceTexelBufferAlignmentFeaturesEXTsType(int value)Sets the specified value to thesTypefield.booleantexelBufferAlignment()Returns the value of thetexelBufferAlignmentfield.VkPhysicalDeviceTexelBufferAlignmentFeaturesEXTtexelBufferAlignment(boolean value)Sets the specified value to thetexelBufferAlignmentfield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT
public VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTinstance 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.
-
texelBufferAlignment
public boolean texelBufferAlignment()
Returns the value of thetexelBufferAlignmentfield.
-
sType
public VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT pNext(long value)
Sets the specified value to thepNextfield.
-
texelBufferAlignment
public VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT texelBufferAlignment(boolean value)
Sets the specified value to thetexelBufferAlignmentfield.
-
set
public VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT set(int sType, long pNext, boolean texelBufferAlignment)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT set(VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT malloc()
Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT calloc()
Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT create()
Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT create(long address)
Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT mallocStack()
Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT callocStack()
Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.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().
-
ntexelBufferAlignment
public static int ntexelBufferAlignment(long struct)
Unsafe version oftexelBufferAlignment().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ntexelBufferAlignment
public static void ntexelBufferAlignment(long struct, int value)Unsafe version oftexelBufferAlignment.
-
-