Package org.lwjgl.vulkan
Class VkPhysicalDeviceScalarBlockLayoutFeaturesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceScalarBlockLayoutFeaturesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceScalarBlockLayoutFeaturesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure indicating support for scalar block layouts.Description
If the
VkPhysicalDeviceScalarBlockLayoutFeaturesEXTstructure is included in thepNextchain ofVkPhysicalDeviceFeatures2, it is filled with values indicating whether the feature is supported.VkPhysicalDeviceScalarBlockLayoutFeaturesEXTcan also be used in thepNextchain ofVkDeviceCreateInfoto enable this feature.Valid Usage (Implicit)
Member documentation
scalarBlockLayout– indicates that the implementation supports the layout of resource blocks in shaders using scalar alignment.
Layout
struct VkPhysicalDeviceScalarBlockLayoutFeaturesEXT { VkStructureType sType; void * pNext; VkBool32 scalarBlockLayout; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceScalarBlockLayoutFeaturesEXT.BufferAn array ofVkPhysicalDeviceScalarBlockLayoutFeaturesEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
SCALARBLOCKLAYOUTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceScalarBlockLayoutFeaturesEXT(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceScalarBlockLayoutFeaturesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceScalarBlockLayoutFeaturesEXTcalloc()Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXTinstance allocated withmemCalloc.static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceScalarBlockLayoutFeaturesEXTcallocStack()Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceScalarBlockLayoutFeaturesEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceScalarBlockLayoutFeaturesEXTcreate()Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXTinstance allocated withBufferUtils.static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Buffercreate(int capacity)Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceScalarBlockLayoutFeaturesEXTcreate(long address)Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXTinstance for the specified memory address.static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Bufferinstance at the specified memory.static VkPhysicalDeviceScalarBlockLayoutFeaturesEXTcreateSafe(long address)static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceScalarBlockLayoutFeaturesEXTmalloc()Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXTinstance allocated withmemAlloc.static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceScalarBlockLayoutFeaturesEXTmallocStack()Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXTinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceScalarBlockLayoutFeaturesEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXTinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnscalarBlockLayout(long struct)Unsafe version ofscalarBlockLayout().static voidnscalarBlockLayout(long struct, int value)Unsafe version ofscalarBlockLayout.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkPhysicalDeviceScalarBlockLayoutFeaturesEXTpNext(long value)Sets the specified value to thepNextfield.booleanscalarBlockLayout()Returns the value of thescalarBlockLayoutfield.VkPhysicalDeviceScalarBlockLayoutFeaturesEXTscalarBlockLayout(boolean value)Sets the specified value to thescalarBlockLayoutfield.VkPhysicalDeviceScalarBlockLayoutFeaturesEXTset(int sType, long pNext, boolean scalarBlockLayout)Initializes this struct with the specified values.VkPhysicalDeviceScalarBlockLayoutFeaturesEXTset(VkPhysicalDeviceScalarBlockLayoutFeaturesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPhysicalDeviceScalarBlockLayoutFeaturesEXTsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceScalarBlockLayoutFeaturesEXT
public VkPhysicalDeviceScalarBlockLayoutFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceScalarBlockLayoutFeaturesEXTinstance 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.
-
scalarBlockLayout
public boolean scalarBlockLayout()
Returns the value of thescalarBlockLayoutfield.
-
sType
public VkPhysicalDeviceScalarBlockLayoutFeaturesEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceScalarBlockLayoutFeaturesEXT pNext(long value)
Sets the specified value to thepNextfield.
-
scalarBlockLayout
public VkPhysicalDeviceScalarBlockLayoutFeaturesEXT scalarBlockLayout(boolean value)
Sets the specified value to thescalarBlockLayoutfield.
-
set
public VkPhysicalDeviceScalarBlockLayoutFeaturesEXT set(int sType, long pNext, boolean scalarBlockLayout)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceScalarBlockLayoutFeaturesEXT set(VkPhysicalDeviceScalarBlockLayoutFeaturesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT malloc()
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT calloc()
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT create()
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXTinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT create(long address)
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT mallocStack()
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT callocStack()
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceScalarBlockLayoutFeaturesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesEXT.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().
-
nscalarBlockLayout
public static int nscalarBlockLayout(long struct)
Unsafe version ofscalarBlockLayout().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nscalarBlockLayout
public static void nscalarBlockLayout(long struct, int value)Unsafe version ofscalarBlockLayout.
-
-