Package org.lwjgl.vulkan
Class VkPipelineShaderStageRequiredSubgroupSizeCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineShaderStageRequiredSubgroupSizeCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT
public class VkPipelineShaderStageRequiredSubgroupSizeCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying the required subgroup size of a newly created pipeline shader stage.Description
If a
VkPipelineShaderStageRequiredSubgroupSizeCreateInfostructure is included in thepNextchain ofVkPipelineShaderStageCreateInfo, it specifies that the pipeline shader stage being compiled has a required subgroup size.Valid Usage
requiredSubgroupSizemust be a power-of-two integerrequiredSubgroupSizemust be greater or equal to minSubgroupSizerequiredSubgroupSizemust be less than or equal to maxSubgroupSize
Valid Usage (Implicit)
Layout
struct VkPipelineShaderStageRequiredSubgroupSizeCreateInfo { VkStructureTypesType(); void *pNext(); uint32_trequiredSubgroupSize(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPipelineShaderStageRequiredSubgroupSizeCreateInfo.BufferAn array ofVkPipelineShaderStageRequiredSubgroupSizeCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
REQUIREDSUBGROUPSIZEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineShaderStageRequiredSubgroupSizeCreateInfo(java.nio.ByteBuffer container)Creates aVkPipelineShaderStageRequiredSubgroupSizeCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPipelineShaderStageRequiredSubgroupSizeCreateInfocalloc()Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfoinstance allocated withmemCalloc.static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Buffercalloc(int capacity)Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Bufferinstance allocated withmemCalloc.static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineShaderStageRequiredSubgroupSizeCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineShaderStageRequiredSubgroupSizeCreateInfocreate()Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfoinstance allocated withBufferUtils.static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Buffercreate(int capacity)Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Bufferinstance allocated withBufferUtils.static VkPipelineShaderStageRequiredSubgroupSizeCreateInfocreate(long address)Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfoinstance for the specified memory address.static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Buffercreate(long address, int capacity)Create aVkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Bufferinstance at the specified memory.static VkPipelineShaderStageRequiredSubgroupSizeCreateInfocreateSafe(long address)static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo.BuffercreateSafe(long address, int capacity)static VkPipelineShaderStageRequiredSubgroupSizeCreateInfomalloc()Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfoinstance allocated withmemAlloc.static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Buffermalloc(int capacity)Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Bufferinstance allocated withmemAlloc.static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineShaderStageRequiredSubgroupSizeCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfoinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnrequiredSubgroupSize(long struct)Unsafe version ofrequiredSubgroupSize().static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkPipelineShaderStageRequiredSubgroupSizeCreateInfopNext(long value)Sets the specified value to thepNext()field.intrequiredSubgroupSize()an unsigned integer value specifying the required subgroup size for the newly created pipeline shader stage.VkPipelineShaderStageRequiredSubgroupSizeCreateInfoset(int sType, long pNext)Initializes this struct with the specified values.VkPipelineShaderStageRequiredSubgroupSizeCreateInfoset(VkPipelineShaderStageRequiredSubgroupSizeCreateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPipelineShaderStageRequiredSubgroupSizeCreateInfosType(int value)Sets the specified value to thesType()field.VkPipelineShaderStageRequiredSubgroupSizeCreateInfosType$Default()Sets theSTRUCTURE_TYPE_PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFOvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPipelineShaderStageRequiredSubgroupSizeCreateInfo
public VkPipelineShaderStageRequiredSubgroupSizeCreateInfo(java.nio.ByteBuffer container)
Creates aVkPipelineShaderStageRequiredSubgroupSizeCreateInfoinstance 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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
requiredSubgroupSize
public int requiredSubgroupSize()
an unsigned integer value specifying the required subgroup size for the newly created pipeline shader stage.
-
sType
public VkPipelineShaderStageRequiredSubgroupSizeCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPipelineShaderStageRequiredSubgroupSizeCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFOvalue to thesType()field.
-
pNext
public VkPipelineShaderStageRequiredSubgroupSizeCreateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkPipelineShaderStageRequiredSubgroupSizeCreateInfo set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPipelineShaderStageRequiredSubgroupSizeCreateInfo set(VkPipelineShaderStageRequiredSubgroupSizeCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo malloc()
Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo calloc()
Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo create()
Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfoinstance allocated withBufferUtils.
-
create
public static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo create(long address)
Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo createSafe(long address)
-
malloc
public static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Buffer malloc(int capacity)
Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Buffer calloc(int capacity)
Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Buffer create(int capacity)
Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Buffer create(long address, int capacity)
Create aVkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineShaderStageRequiredSubgroupSizeCreateInfo.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().
-
nrequiredSubgroupSize
public static int nrequiredSubgroupSize(long struct)
Unsafe version ofrequiredSubgroupSize().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-