Package org.lwjgl.vulkan
Class VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceFloat16Int8FeaturesKHR
public class VkPhysicalDeviceShaderFloat16Int8FeaturesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing features supported by VK_KHR_shader_float16_int8.Valid Usage (Implicit)
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.shaderFloat16– indicates whether 16-bit floats (halfs) are supported in shader code. This also indicates whether shader modules can declare theFloat16capability.shaderInt8– indicates whether 8-bit integers (signed and unsigned) are supported in shader code. This also indicates whether shader modules can declare theInt8capability.
Layout
struct VkPhysicalDeviceShaderFloat16Int8FeaturesKHR { VkStructureType sType; void * pNext; VkBool32 shaderFloat16; VkBool32 shaderInt8; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.BufferAn array ofVkPhysicalDeviceShaderFloat16Int8FeaturesKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
SHADERFLOAT16
SHADERINT8The struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceShaderFloat16Int8FeaturesKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceShaderFloat16Int8FeaturesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceShaderFloat16Int8FeaturesKHRcalloc()Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHRinstance allocated withmemCalloc.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHRcallocStack()Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHRcreate()Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHRinstance allocated withBufferUtils.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffercreate(int capacity)Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHRcreate(long address)Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHRinstance for the specified memory address.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Bufferinstance at the specified memory.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHRcreateSafe(long address)static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceShaderFloat16Int8FeaturesKHRmalloc()Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHRinstance allocated withmemAlloc.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHRmallocStack()Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHRinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHRinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnshaderFloat16(long struct)Unsafe version ofshaderFloat16().static voidnshaderFloat16(long struct, int value)Unsafe version ofshaderFloat16.static intnshaderInt8(long struct)Unsafe version ofshaderInt8().static voidnshaderInt8(long struct, int value)Unsafe version ofshaderInt8.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkPhysicalDeviceShaderFloat16Int8FeaturesKHRpNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceShaderFloat16Int8FeaturesKHRset(int sType, long pNext, boolean shaderFloat16, boolean shaderInt8)Initializes this struct with the specified values.VkPhysicalDeviceShaderFloat16Int8FeaturesKHRset(VkPhysicalDeviceShaderFloat16Int8FeaturesKHR src)Copies the specified struct data to this struct.booleanshaderFloat16()Returns the value of theshaderFloat16field.VkPhysicalDeviceShaderFloat16Int8FeaturesKHRshaderFloat16(boolean value)Sets the specified value to theshaderFloat16field.booleanshaderInt8()Returns the value of theshaderInt8field.VkPhysicalDeviceShaderFloat16Int8FeaturesKHRshaderInt8(boolean value)Sets the specified value to theshaderInt8field.intsizeof()intsType()Returns the value of thesTypefield.VkPhysicalDeviceShaderFloat16Int8FeaturesKHRsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceShaderFloat16Int8FeaturesKHRinstance 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.
-
shaderFloat16
public boolean shaderFloat16()
Returns the value of theshaderFloat16field.
-
shaderInt8
public boolean shaderInt8()
Returns the value of theshaderInt8field.
-
sType
public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR pNext(long value)
Sets the specified value to thepNextfield.
-
shaderFloat16
public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR shaderFloat16(boolean value)
Sets the specified value to theshaderFloat16field.
-
shaderInt8
public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR shaderInt8(boolean value)
Sets the specified value to theshaderInt8field.
-
set
public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR set(int sType, long pNext, boolean shaderFloat16, boolean shaderInt8)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR set(VkPhysicalDeviceShaderFloat16Int8FeaturesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR malloc()
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR calloc()
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR create()
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR create(long address)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR mallocStack()
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR callocStack()
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.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().
-
nshaderFloat16
public static int nshaderFloat16(long struct)
Unsafe version ofshaderFloat16().
-
nshaderInt8
public static int nshaderInt8(long struct)
Unsafe version ofshaderInt8().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nshaderFloat16
public static void nshaderFloat16(long struct, int value)Unsafe version ofshaderFloat16.
-
nshaderInt8
public static void nshaderInt8(long struct, int value)Unsafe version ofshaderInt8.
-
-