Package org.lwjgl.vulkan
Class VkTextureLODGatherFormatPropertiesAMD
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkTextureLODGatherFormatPropertiesAMD
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkTextureLODGatherFormatPropertiesAMD extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure informing whether or not texture gather bias/LOD functionality is supported for a given image format and a given physical device.Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD
Member documentation
sType
– the type of this structure.pNext
–NULL
.supportsTextureGatherLODBiasAMD
– tells if the image format can be used with texture gather bias/LOD functions, as introduced by theVK_AMD_texture_gather_bias_lod
extension. This field is set by the implementation. User-specified value is ignored.
Layout
struct VkTextureLODGatherFormatPropertiesAMD { VkStructureType sType; void * pNext; VkBool32 supportsTextureGatherLODBiasAMD; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkTextureLODGatherFormatPropertiesAMD.Buffer
An array ofVkTextureLODGatherFormatPropertiesAMD
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
SUPPORTSTEXTUREGATHERLODBIASAMDThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkTextureLODGatherFormatPropertiesAMD(java.nio.ByteBuffer container)
Creates aVkTextureLODGatherFormatPropertiesAMD
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 VkTextureLODGatherFormatPropertiesAMD
calloc()
Returns a newVkTextureLODGatherFormatPropertiesAMD
instance allocated withmemCalloc
.static VkTextureLODGatherFormatPropertiesAMD.Buffer
calloc(int capacity)
Returns a newVkTextureLODGatherFormatPropertiesAMD.Buffer
instance allocated withmemCalloc
.static VkTextureLODGatherFormatPropertiesAMD
callocStack()
Returns a newVkTextureLODGatherFormatPropertiesAMD
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkTextureLODGatherFormatPropertiesAMD.Buffer
callocStack(int capacity)
Returns a newVkTextureLODGatherFormatPropertiesAMD.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkTextureLODGatherFormatPropertiesAMD.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkTextureLODGatherFormatPropertiesAMD.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkTextureLODGatherFormatPropertiesAMD
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkTextureLODGatherFormatPropertiesAMD
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkTextureLODGatherFormatPropertiesAMD
create()
Returns a newVkTextureLODGatherFormatPropertiesAMD
instance allocated withBufferUtils
.static VkTextureLODGatherFormatPropertiesAMD.Buffer
create(int capacity)
Returns a newVkTextureLODGatherFormatPropertiesAMD.Buffer
instance allocated withBufferUtils
.static VkTextureLODGatherFormatPropertiesAMD
create(long address)
Returns a newVkTextureLODGatherFormatPropertiesAMD
instance for the specified memory address.static VkTextureLODGatherFormatPropertiesAMD.Buffer
create(long address, int capacity)
Create aVkTextureLODGatherFormatPropertiesAMD.Buffer
instance at the specified memory.static VkTextureLODGatherFormatPropertiesAMD
createSafe(long address)
static VkTextureLODGatherFormatPropertiesAMD.Buffer
createSafe(long address, int capacity)
static VkTextureLODGatherFormatPropertiesAMD
malloc()
Returns a newVkTextureLODGatherFormatPropertiesAMD
instance allocated withmemAlloc
.static VkTextureLODGatherFormatPropertiesAMD.Buffer
malloc(int capacity)
Returns a newVkTextureLODGatherFormatPropertiesAMD.Buffer
instance allocated withmemAlloc
.static VkTextureLODGatherFormatPropertiesAMD
mallocStack()
Returns a newVkTextureLODGatherFormatPropertiesAMD
instance allocated on the thread-localMemoryStack
.static VkTextureLODGatherFormatPropertiesAMD.Buffer
mallocStack(int capacity)
Returns a newVkTextureLODGatherFormatPropertiesAMD.Buffer
instance allocated on the thread-localMemoryStack
.static VkTextureLODGatherFormatPropertiesAMD.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkTextureLODGatherFormatPropertiesAMD.Buffer
instance allocated on the specifiedMemoryStack
.static VkTextureLODGatherFormatPropertiesAMD
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkTextureLODGatherFormatPropertiesAMD
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
nsupportsTextureGatherLODBiasAMD(long struct)
Unsafe version ofsupportsTextureGatherLODBiasAMD()
.long
pNext()
Returns the value of thepNext
field.VkTextureLODGatherFormatPropertiesAMD
pNext(long value)
Sets the specified value to thepNext
field.VkTextureLODGatherFormatPropertiesAMD
set(int sType, long pNext)
Initializes this struct with the specified values.VkTextureLODGatherFormatPropertiesAMD
set(VkTextureLODGatherFormatPropertiesAMD src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkTextureLODGatherFormatPropertiesAMD
sType(int value)
Sets the specified value to thesType
field.boolean
supportsTextureGatherLODBiasAMD()
Returns the value of thesupportsTextureGatherLODBiasAMD
field.
-
-
-
Constructor Detail
-
VkTextureLODGatherFormatPropertiesAMD
public VkTextureLODGatherFormatPropertiesAMD(java.nio.ByteBuffer container)
Creates aVkTextureLODGatherFormatPropertiesAMD
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.
-
supportsTextureGatherLODBiasAMD
public boolean supportsTextureGatherLODBiasAMD()
Returns the value of thesupportsTextureGatherLODBiasAMD
field.
-
sType
public VkTextureLODGatherFormatPropertiesAMD sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkTextureLODGatherFormatPropertiesAMD pNext(long value)
Sets the specified value to thepNext
field.
-
set
public VkTextureLODGatherFormatPropertiesAMD set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkTextureLODGatherFormatPropertiesAMD set(VkTextureLODGatherFormatPropertiesAMD src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkTextureLODGatherFormatPropertiesAMD malloc()
Returns a newVkTextureLODGatherFormatPropertiesAMD
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkTextureLODGatherFormatPropertiesAMD calloc()
Returns a newVkTextureLODGatherFormatPropertiesAMD
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkTextureLODGatherFormatPropertiesAMD create()
Returns a newVkTextureLODGatherFormatPropertiesAMD
instance allocated withBufferUtils
.
-
create
public static VkTextureLODGatherFormatPropertiesAMD create(long address)
Returns a newVkTextureLODGatherFormatPropertiesAMD
instance for the specified memory address.
-
createSafe
@Nullable public static VkTextureLODGatherFormatPropertiesAMD createSafe(long address)
-
malloc
public static VkTextureLODGatherFormatPropertiesAMD.Buffer malloc(int capacity)
Returns a newVkTextureLODGatherFormatPropertiesAMD.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkTextureLODGatherFormatPropertiesAMD.Buffer calloc(int capacity)
Returns a newVkTextureLODGatherFormatPropertiesAMD.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkTextureLODGatherFormatPropertiesAMD.Buffer create(int capacity)
Returns a newVkTextureLODGatherFormatPropertiesAMD.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkTextureLODGatherFormatPropertiesAMD.Buffer create(long address, int capacity)
Create aVkTextureLODGatherFormatPropertiesAMD.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkTextureLODGatherFormatPropertiesAMD.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkTextureLODGatherFormatPropertiesAMD mallocStack()
Returns a newVkTextureLODGatherFormatPropertiesAMD
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkTextureLODGatherFormatPropertiesAMD callocStack()
Returns a newVkTextureLODGatherFormatPropertiesAMD
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkTextureLODGatherFormatPropertiesAMD mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkTextureLODGatherFormatPropertiesAMD
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkTextureLODGatherFormatPropertiesAMD callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkTextureLODGatherFormatPropertiesAMD
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkTextureLODGatherFormatPropertiesAMD.Buffer mallocStack(int capacity)
Returns a newVkTextureLODGatherFormatPropertiesAMD.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkTextureLODGatherFormatPropertiesAMD.Buffer callocStack(int capacity)
Returns a newVkTextureLODGatherFormatPropertiesAMD.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkTextureLODGatherFormatPropertiesAMD.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkTextureLODGatherFormatPropertiesAMD.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkTextureLODGatherFormatPropertiesAMD.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkTextureLODGatherFormatPropertiesAMD.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()
.
-
nsupportsTextureGatherLODBiasAMD
public static int nsupportsTextureGatherLODBiasAMD(long struct)
Unsafe version ofsupportsTextureGatherLODBiasAMD()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
-