Package org.lwjgl.vulkan
Class VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing ASTC HDR features that can be supported by an implementation.Description
If the
VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTstructure is included in thepNextchain ofVkPhysicalDeviceFeatures2, it is filled with values indicating whether each feature is supported.VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTcan also be used in thepNextchain ofCreateDeviceto enable features.Valid Usage (Implicit)
Member documentation
textureCompressionASTC_HDR– indicates whether all of the ASTC HDR compressed texture formats are supported. If this feature is enabled, then theFORMAT_FEATURE_SAMPLED_IMAGE_BIT,FORMAT_FEATURE_BLIT_SRC_BITandFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BITfeatures must be supported inoptimalTilingFeaturesfor the following formats:FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXTFORMAT_ASTC_5x4_SFLOAT_BLOCK_EXTFORMAT_ASTC_5x5_SFLOAT_BLOCK_EXTFORMAT_ASTC_6x5_SFLOAT_BLOCK_EXTFORMAT_ASTC_6x6_SFLOAT_BLOCK_EXTFORMAT_ASTC_8x5_SFLOAT_BLOCK_EXTFORMAT_ASTC_8x6_SFLOAT_BLOCK_EXTFORMAT_ASTC_8x8_SFLOAT_BLOCK_EXTFORMAT_ASTC_10x5_SFLOAT_BLOCK_EXTFORMAT_ASTC_10x6_SFLOAT_BLOCK_EXTFORMAT_ASTC_10x8_SFLOAT_BLOCK_EXTFORMAT_ASTC_10x10_SFLOAT_BLOCK_EXTFORMAT_ASTC_12x10_SFLOAT_BLOCK_EXTFORMAT_ASTC_12x12_SFLOAT_BLOCK_EXT
To query for additional properties, or if the feature is not enabled,
GetPhysicalDeviceFormatPropertiesandGetPhysicalDeviceImageFormatPropertiescan be used to check for supported properties of individual formats as normal.
Layout
struct VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT { VkStructureType sType; void const * pNext; VkBool32 textureCompressionASTC_HDR; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.BufferAn array ofVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTstructs.
-
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
TEXTURECOMPRESSIONASTC_HDRThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTcalloc()Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTinstance allocated withmemCalloc.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTcallocStack()Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTcreate()Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTinstance allocated withBufferUtils.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffercreate(int capacity)Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTcreate(long address)Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTinstance for the specified memory address.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Bufferinstance at the specified memory.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTcreateSafe(long address)static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTmalloc()Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTinstance allocated withmemAlloc.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTmallocStack()Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTinstance 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 intntextureCompressionASTC_HDR(long struct)Unsafe version oftextureCompressionASTC_HDR().static voidntextureCompressionASTC_HDR(long struct, int value)Unsafe version oftextureCompressionASTC_HDR.longpNext()Returns the value of thepNextfield.VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTpNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTset(int sType, long pNext, boolean textureCompressionASTC_HDR)Initializes this struct with the specified values.VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTset(VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTsType(int value)Sets the specified value to thesTypefield.booleantextureCompressionASTC_HDR()Returns the value of thetextureCompressionASTC_HDRfield.VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTtextureCompressionASTC_HDR(boolean value)Sets the specified value to thetextureCompressionASTC_HDRfield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
public VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTinstance 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.
-
textureCompressionASTC_HDR
public boolean textureCompressionASTC_HDR()
Returns the value of thetextureCompressionASTC_HDRfield.
-
sType
public VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT pNext(long value)
Sets the specified value to thepNextfield.
-
textureCompressionASTC_HDR
public VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT textureCompressionASTC_HDR(boolean value)
Sets the specified value to thetextureCompressionASTC_HDRfield.
-
set
public VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT set(int sType, long pNext, boolean textureCompressionASTC_HDR)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT set(VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT malloc()
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT calloc()
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT create()
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT create(long address)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT mallocStack()
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT callocStack()
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.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().
-
ntextureCompressionASTC_HDR
public static int ntextureCompressionASTC_HDR(long struct)
Unsafe version oftextureCompressionASTC_HDR().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ntextureCompressionASTC_HDR
public static void ntextureCompressionASTC_HDR(long struct, int value)Unsafe version oftextureCompressionASTC_HDR.
-
-