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.NativeResource
Structure describing ASTC HDR features that can be supported by an implementation.Description
If the
VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
structure is included in thepNext
chain ofVkPhysicalDeviceFeatures2
, it is filled with values indicating whether each feature is supported.VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
can also be used in thepNext
chain ofCreateDevice
to 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_BIT
andFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
features must be supported inoptimalTilingFeatures
for the following formats:FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT
FORMAT_ASTC_5x4_SFLOAT_BLOCK_EXT
FORMAT_ASTC_5x5_SFLOAT_BLOCK_EXT
FORMAT_ASTC_6x5_SFLOAT_BLOCK_EXT
FORMAT_ASTC_6x6_SFLOAT_BLOCK_EXT
FORMAT_ASTC_8x5_SFLOAT_BLOCK_EXT
FORMAT_ASTC_8x6_SFLOAT_BLOCK_EXT
FORMAT_ASTC_8x8_SFLOAT_BLOCK_EXT
FORMAT_ASTC_10x5_SFLOAT_BLOCK_EXT
FORMAT_ASTC_10x6_SFLOAT_BLOCK_EXT
FORMAT_ASTC_10x8_SFLOAT_BLOCK_EXT
FORMAT_ASTC_10x10_SFLOAT_BLOCK_EXT
FORMAT_ASTC_12x10_SFLOAT_BLOCK_EXT
FORMAT_ASTC_12x12_SFLOAT_BLOCK_EXT
To query for additional properties, or if the feature is not enabled,
GetPhysicalDeviceFormatProperties
andGetPhysicalDeviceImageFormatProperties
can 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 class
VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
An array ofVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
PNEXT
The struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
TEXTURECOMPRESSIONASTC_HDRThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
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 VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
calloc()
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
instance allocated withmemCalloc
.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
callocStack()
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
create()
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
instance allocated withBufferUtils
.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
create(long address)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
instance for the specified memory address.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
instance at the specified memory.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
createSafe(long address)
static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
createSafe(long address, int capacity)
static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
malloc()
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
instance allocated withmemAlloc
.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
mallocStack()
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
instance allocated on the specifiedMemoryStack
.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
ntextureCompressionASTC_HDR(long struct)
Unsafe version oftextureCompressionASTC_HDR()
.static void
ntextureCompressionASTC_HDR(long struct, int value)
Unsafe version oftextureCompressionASTC_HDR
.long
pNext()
Returns the value of thepNext
field.VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
pNext(long value)
Sets the specified value to thepNext
field.VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
set(int sType, long pNext, boolean textureCompressionASTC_HDR)
Initializes this struct with the specified values.VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
set(VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
sType(int value)
Sets the specified value to thesType
field.boolean
textureCompressionASTC_HDR()
Returns the value of thetextureCompressionASTC_HDR
field.VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
textureCompressionASTC_HDR(boolean value)
Sets the specified value to thetextureCompressionASTC_HDR
field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
public VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
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.
-
textureCompressionASTC_HDR
public boolean textureCompressionASTC_HDR()
Returns the value of thetextureCompressionASTC_HDR
field.
-
sType
public VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT pNext(long value)
Sets the specified value to thepNext
field.
-
textureCompressionASTC_HDR
public VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT textureCompressionASTC_HDR(boolean value)
Sets the specified value to thetextureCompressionASTC_HDR
field.
-
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 newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT calloc()
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT create()
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT create(long address)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
instance 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 newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT callocStack()
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.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()
.
-
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
.
-
-