Class VkPipelineShaderStageCreateInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Description
If module
is not NULL_HANDLE
, the shader code used by the pipeline is defined by module
. If module
is NULL_HANDLE
, the shader code is defined by the chained VkShaderModuleCreateInfo
if present.
If the shaderModuleIdentifier
feature is enabled, applications can omit shader code for stage
and instead provide a module identifier. This is done by including a VkPipelineShaderStageModuleIdentifierCreateInfoEXT
struct with identifierSize
not equal to 0 in the pNext
chain. A shader stage created in this way is equivalent to one created using a shader module with the same identifier. The identifier allows an implementation to look up a pipeline without consuming a valid SPIR-V module. If a pipeline is not found, pipeline compilation is not possible and the implementation must fail as specified by PIPELINE_CREATE_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT
.
When an identifier is used in lieu of a shader module, implementations may fail pipeline compilation with PIPELINE_COMPILE_REQUIRED
for any reason.
Note
The rationale for the relaxed requirement on implementations to return a pipeline with VkPipelineShaderStageModuleIdentifierCreateInfoEXT
is that layers or tools may intercept pipeline creation calls and require the full SPIR-V context to operate correctly. ICDs are not expected to fail pipeline compilation if the pipeline exists in a cache somewhere.
Applications can use identifiers when creating pipelines with PIPELINE_CREATE_LIBRARY_BIT_KHR
. When creating such pipelines, SUCCESS
may be returned, but subsequently fail when referencing the pipeline in a VkPipelineLibraryCreateInfoKHR
struct. Applications must allow pipeline compilation to fail during link steps with PIPELINE_CREATE_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT
as it may not be possible to determine if a pipeline can be created from identifiers until the link step.
Valid Usage
- If the
geometryShader
feature is not enabled,stage
must not beSHADER_STAGE_GEOMETRY_BIT
- If the
tessellationShader
feature is not enabled,stage
must not beSHADER_STAGE_TESSELLATION_CONTROL_BIT
orSHADER_STAGE_TESSELLATION_EVALUATION_BIT
- If the
meshShaders
feature is not enabled,stage
must not beSHADER_STAGE_MESH_BIT_EXT
- If the
taskShaders
feature is not enabled,stage
must not beSHADER_STAGE_TASK_BIT_EXT
- If the
clustercullingShader
feature is not enabled,stage
must not beSHADER_STAGE_CLUSTER_CULLING_BIT_HUAWEI
stage
must not beSHADER_STAGE_ALL_GRAPHICS
, orSHADER_STAGE_ALL
pName
must be the name of anOpEntryPoint
inmodule
with an execution model that matchesstage
- If the identified entry point includes any variable in its interface that is declared with the
ClipDistance
BuiltIn
decoration, that variable must not have an array size greater thanVkPhysicalDeviceLimits
::maxClipDistances
- If the identified entry point includes any variable in its interface that is declared with the
CullDistance
BuiltIn
decoration, that variable must not have an array size greater thanVkPhysicalDeviceLimits
::maxCullDistances
- If the identified entry point includes any variables in its interface that are declared with the
ClipDistance
orCullDistance
BuiltIn
decoration, those variables must not have array sizes which sum to more thanVkPhysicalDeviceLimits
::maxCombinedClipAndCullDistances
- If the identified entry point includes any variable in its interface that is declared with the
SampleMask
BuiltIn
decoration, that variable must not have an array size greater thanVkPhysicalDeviceLimits
::maxSampleMaskWords
- If
stage
isSHADER_STAGE_TESSELLATION_CONTROL_BIT
orSHADER_STAGE_TESSELLATION_EVALUATION_BIT
, and the identified entry point has anOpExecutionMode
instruction specifying a patch size withOutputVertices
, the patch size must be greater than 0 and less than or equal toVkPhysicalDeviceLimits
::maxTessellationPatchSize
- If
stage
isSHADER_STAGE_GEOMETRY_BIT
, the identified entry point must have anOpExecutionMode
instruction specifying a maximum output vertex count that is greater than 0 and less than or equal toVkPhysicalDeviceLimits
::maxGeometryOutputVertices
- If
stage
isSHADER_STAGE_GEOMETRY_BIT
, the identified entry point must have anOpExecutionMode
instruction specifying an invocation count that is greater than 0 and less than or equal toVkPhysicalDeviceLimits
::maxGeometryShaderInvocations
- If
stage
is eitherSHADER_STAGE_VERTEX_BIT
,SHADER_STAGE_TESSELLATION_CONTROL_BIT
,SHADER_STAGE_TESSELLATION_EVALUATION_BIT
, orSHADER_STAGE_GEOMETRY_BIT
, and the identified entry point writes toLayer
for any primitive, it must write the same value toLayer
for all vertices of a given primitive - If
stage
is eitherSHADER_STAGE_VERTEX_BIT
,SHADER_STAGE_TESSELLATION_CONTROL_BIT
,SHADER_STAGE_TESSELLATION_EVALUATION_BIT
, orSHADER_STAGE_GEOMETRY_BIT
, and the identified entry point writes toViewportIndex
for any primitive, it must write the same value toViewportIndex
for all vertices of a given primitive - If
stage
isSHADER_STAGE_FRAGMENT_BIT
, and the identified entry point writes toFragDepth
in any execution path, all execution paths that are not exclusive to helper invocations must either discard the fragment, or write or initialize the value ofFragDepth
- If
stage
isSHADER_STAGE_FRAGMENT_BIT
, and the identified entry point writes toFragStencilRefEXT
in any execution path, all execution paths that are not exclusive to helper invocations must either discard the fragment, or write or initialize the value ofFragStencilRefEXT
- If
flags
has thePIPELINE_SHADER_STAGE_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BIT
flag set, thesubgroupSizeControl
feature must be enabled - If
flags
has thePIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BIT
flag set, thecomputeFullSubgroups
feature must be enabled - If
flags
includesPIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BIT
,stage
must be one ofSHADER_STAGE_MESH_BIT_EXT
,SHADER_STAGE_TASK_BIT_EXT
, orSHADER_STAGE_COMPUTE_BIT
- If a
VkPipelineShaderStageRequiredSubgroupSizeCreateInfo
structure is included in thepNext
chain,flags
must not have thePIPELINE_SHADER_STAGE_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BIT
flag set - If a
VkPipelineShaderStageRequiredSubgroupSizeCreateInfo
structure is included in thepNext
chain, thesubgroupSizeControl
feature must be enabled, andstage
must be a valid bit specified inrequiredSubgroupSizeStages
- If a
VkPipelineShaderStageRequiredSubgroupSizeCreateInfo
structure is included in thepNext
chain andstage
isSHADER_STAGE_COMPUTE_BIT
,SHADER_STAGE_MESH_BIT_EXT
, orSHADER_STAGE_TASK_BIT_EXT
, the local workgroup size of the shader must be less than or equal to the product ofVkPipelineShaderStageRequiredSubgroupSizeCreateInfo
::requiredSubgroupSize
andmaxComputeWorkgroupSubgroups
- If a
VkPipelineShaderStageRequiredSubgroupSizeCreateInfo
structure is included in thepNext
chain, andflags
has thePIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BIT
flag set, the local workgroup size in the X dimension of the pipeline must be a multiple ofVkPipelineShaderStageRequiredSubgroupSizeCreateInfo
::requiredSubgroupSize
- If
flags
has both thePIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BIT
andPIPELINE_SHADER_STAGE_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BIT
flags set, the local workgroup size in the X dimension of the pipeline must be a multiple ofmaxSubgroupSize
- If
flags
has thePIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BIT
flag set andflags
does not have thePIPELINE_SHADER_STAGE_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BIT
flag set and noVkPipelineShaderStageRequiredSubgroupSizeCreateInfo
structure is included in thepNext
chain, the local workgroup size in the X dimension of the pipeline must be a multiple ofsubgroupSize
- If
module
uses theOpTypeCooperativeMatrixKHR
instruction with aScope
equal toSubgroup
, then the local workgroup size in the X dimension of the pipeline must be a multiple ofsubgroupSize
. - If a shader module identifier is not specified for this
stage
,module
must be a validVkShaderModule
if none of the following features are enabled: - If a shader module identifier is not specified for this
stage
,module
must be a validVkShaderModule
, or there must be a validVkShaderModuleCreateInfo
structure in thepNext
chain - If a shader module identifier is specified for this
stage
, aVkShaderModuleCreateInfo
structure must not be present in thepNext
chain - If a shader module identifier is specified for this
stage
,module
must beNULL_HANDLE
- If a shader module identifier is not specified, the shader code used by the pipeline must be valid as described by the Khronos SPIR-V Specification after applying the specializations provided in
pSpecializationInfo
, if any, and then converting all specialization constants into fixed constants
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO
- Each
pNext
member of any structure (including this one) in thepNext
chain must be eitherNULL
or a pointer to a valid instance ofVkDebugUtilsObjectNameInfoEXT
,VkPipelineRobustnessCreateInfoEXT
,VkPipelineShaderStageModuleIdentifierCreateInfoEXT
,VkPipelineShaderStageNodeCreateInfoAMDX
,VkPipelineShaderStageRequiredSubgroupSizeCreateInfo
,VkShaderModuleCreateInfo
, orVkShaderModuleValidationCacheCreateInfoEXT
- The
sType
value of each struct in thepNext
chain must be unique flags
must be a valid combination ofVkPipelineShaderStageCreateFlagBits
valuesstage
must be a validVkShaderStageFlagBits
value- If
module
is notNULL_HANDLE
,module
must be a validVkShaderModule
handle pName
must be a null-terminated UTF-8 string- If
pSpecializationInfo
is notNULL
,pSpecializationInfo
must be a valid pointer to a validVkSpecializationInfo
structure
See Also
VkComputePipelineCreateInfo
, VkExecutionGraphPipelineCreateInfoAMDX
, VkGraphicsPipelineCreateInfo
, VkGraphicsShaderGroupCreateInfoNV
, VkRayTracingPipelineCreateInfoKHR
, VkRayTracingPipelineCreateInfoNV
, VkSpecializationInfo
Layout
struct VkPipelineShaderStageCreateInfo {
VkStructureType sType()
;
void const * pNext()
;
VkPipelineShaderStageCreateFlags flags()
;
VkShaderStageFlagBits stage()
;
VkShaderModule module()
;
char const * pName()
;
VkSpecializationInfo
const * pSpecializationInfo()
;
}
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
An array ofVkPipelineShaderStageCreateInfo
structs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionVkPipelineShaderStageCreateInfo
(ByteBuffer container) Creates aVkPipelineShaderStageCreateInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newVkPipelineShaderStageCreateInfo
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkPipelineShaderStageCreateInfo.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkPipelineShaderStageCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newVkPipelineShaderStageCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.Deprecated.callocStack
(int capacity) Deprecated.callocStack
(int capacity, MemoryStack stack) Deprecated.callocStack
(MemoryStack stack) Deprecated.create()
Returns a newVkPipelineShaderStageCreateInfo
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkPipelineShaderStageCreateInfo.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newVkPipelineShaderStageCreateInfo
instance for the specified memory address.create
(long address, int capacity) Create aVkPipelineShaderStageCreateInfo.Buffer
instance at the specified memory.createSafe
(long address) createSafe
(long address, int capacity) int
flags()
a bitmask ofVkPipelineShaderStageCreateFlagBits
specifying how the pipeline shader stage will be generated.flags
(int value) Sets the specified value to theflags()
field.malloc()
Returns a newVkPipelineShaderStageCreateInfo
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkPipelineShaderStageCreateInfo.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkPipelineShaderStageCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newVkPipelineShaderStageCreateInfo
instance allocated on the specifiedMemoryStack
.Deprecated.mallocStack
(int capacity) Deprecated.mallocStack
(int capacity, MemoryStack stack) Deprecated.mallocStack
(MemoryStack stack) Deprecated.long
module()
optionally aVkShaderModule
object containing the shader code for this stage.module
(long value) Sets the specified value to themodule()
field.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static long
nmodule
(long struct) Unsafe version ofmodule()
.static void
nmodule
(long struct, long value) Unsafe version ofmodule
.static ByteBuffer
npName
(long struct) Unsafe version ofpName()
.static void
npName
(long struct, ByteBuffer value) Unsafe version ofpName
.static String
npNameString
(long struct) Unsafe version ofpNameString()
.static long
npNext
(long struct) Unsafe version ofpNext()
.static void
npNext
(long struct, long value) Unsafe version ofpNext
.static VkSpecializationInfo
npSpecializationInfo
(long struct) Unsafe version ofpSpecializationInfo()
.static void
npSpecializationInfo
(long struct, VkSpecializationInfo value) Unsafe version ofpSpecializationInfo
.static int
nstage
(long struct) Unsafe version ofstage()
.static void
nstage
(long struct, int value) Unsafe version ofstage
.static int
nsType
(long struct) Unsafe version ofsType()
.static void
nsType
(long struct, int value) Unsafe version ofsType
.pName()
a pointer to a null-terminated UTF-8 string specifying the entry point name of the shader for this stage.pName
(ByteBuffer value) Sets the address of the specified encoded string to thepName()
field.a pointer to a null-terminated UTF-8 string specifying the entry point name of the shader for this stage.long
pNext()
NULL
or a pointer to a structure extending this structure.pNext
(long value) Sets the specified value to thepNext()
field.Prepends the specifiedVkDebugUtilsObjectNameInfoEXT
value to thepNext
chain.Prepends the specifiedVkPipelineRobustnessCreateInfoEXT
value to thepNext
chain.Prepends the specifiedVkPipelineShaderStageModuleIdentifierCreateInfoEXT
value to thepNext
chain.Prepends the specifiedVkPipelineShaderStageNodeCreateInfoAMDX
value to thepNext
chain.Prepends the specifiedVkPipelineShaderStageRequiredSubgroupSizeCreateInfo
value to thepNext
chain.Prepends the specifiedVkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT
value to thepNext
chain.pNext
(VkShaderModuleCreateInfo value) Prepends the specifiedVkShaderModuleCreateInfo
value to thepNext
chain.Prepends the specifiedVkShaderModuleValidationCacheCreateInfoEXT
value to thepNext
chain.Prepends the specifiedVkShaderRequiredSubgroupSizeCreateInfoEXT
value to thepNext
chain.Sets the address of the specifiedVkSpecializationInfo
to thepSpecializationInfo()
field.set
(int sType, long pNext, int flags, int stage, long module, ByteBuffer pName, VkSpecializationInfo pSpecializationInfo) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
stage()
aVkShaderStageFlagBits
value specifying a single pipeline stage.stage
(int value) Sets the specified value to thestage()
field.int
sType()
aVkStructureType
value identifying this structure.sType
(int value) Sets the specified value to thesType()
field.Sets theSTRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO
value to thesType()
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
STAGE
public static final int STAGEThe struct member offsets. -
MODULE
public static final int MODULEThe struct member offsets. -
PNAME
public static final int PNAMEThe struct member offsets. -
PSPECIALIZATIONINFO
public static final int PSPECIALIZATIONINFOThe struct member offsets.
-
-
Constructor Details
-
VkPipelineShaderStageCreateInfo
Creates aVkPipelineShaderStageCreateInfo
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkPipelineShaderStageCreateInfo>
-
sType
public int sType()aVkStructureType
value identifying this structure. -
pNext
public long pNext()NULL
or a pointer to a structure extending this structure. -
flags
public int flags()a bitmask ofVkPipelineShaderStageCreateFlagBits
specifying how the pipeline shader stage will be generated. -
stage
public int stage()aVkShaderStageFlagBits
value specifying a single pipeline stage. -
module
public long module()optionally aVkShaderModule
object containing the shader code for this stage. -
pName
a pointer to a null-terminated UTF-8 string specifying the entry point name of the shader for this stage. -
pNameString
a pointer to a null-terminated UTF-8 string specifying the entry point name of the shader for this stage. -
pSpecializationInfo
-
sType
Sets the specified value to thesType()
field. -
sType$Default
Sets theSTRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO
value to thesType()
field. -
pNext
Sets the specified value to thepNext()
field. -
pNext
Prepends the specifiedVkDebugUtilsObjectNameInfoEXT
value to thepNext
chain. -
pNext
Prepends the specifiedVkPipelineRobustnessCreateInfoEXT
value to thepNext
chain. -
pNext
public VkPipelineShaderStageCreateInfo pNext(VkPipelineShaderStageModuleIdentifierCreateInfoEXT value) Prepends the specifiedVkPipelineShaderStageModuleIdentifierCreateInfoEXT
value to thepNext
chain. -
pNext
Prepends the specifiedVkPipelineShaderStageNodeCreateInfoAMDX
value to thepNext
chain. -
pNext
public VkPipelineShaderStageCreateInfo pNext(VkPipelineShaderStageRequiredSubgroupSizeCreateInfo value) Prepends the specifiedVkPipelineShaderStageRequiredSubgroupSizeCreateInfo
value to thepNext
chain. -
pNext
public VkPipelineShaderStageCreateInfo pNext(VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT value) Prepends the specifiedVkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT
value to thepNext
chain. -
pNext
Prepends the specifiedVkShaderModuleCreateInfo
value to thepNext
chain. -
pNext
Prepends the specifiedVkShaderModuleValidationCacheCreateInfoEXT
value to thepNext
chain. -
pNext
Prepends the specifiedVkShaderRequiredSubgroupSizeCreateInfoEXT
value to thepNext
chain. -
flags
Sets the specified value to theflags()
field. -
stage
Sets the specified value to thestage()
field. -
module
Sets the specified value to themodule()
field. -
pName
Sets the address of the specified encoded string to thepName()
field. -
pSpecializationInfo
Sets the address of the specifiedVkSpecializationInfo
to thepSpecializationInfo()
field. -
set
public VkPipelineShaderStageCreateInfo set(int sType, long pNext, int flags, int stage, long module, ByteBuffer pName, @Nullable VkSpecializationInfo pSpecializationInfo) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkPipelineShaderStageCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkPipelineShaderStageCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkPipelineShaderStageCreateInfo
instance allocated withBufferUtils
. -
create
Returns a newVkPipelineShaderStageCreateInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkPipelineShaderStageCreateInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkPipelineShaderStageCreateInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkPipelineShaderStageCreateInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkPipelineShaderStageCreateInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPipelineShaderStageCreateInfo.Buffer createSafe(long address, int capacity) -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
@Deprecated public static VkPipelineShaderStageCreateInfo.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static VkPipelineShaderStageCreateInfo.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkPipelineShaderStageCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkPipelineShaderStageCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkPipelineShaderStageCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkPipelineShaderStageCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType()
. -
npNext
public static long npNext(long struct) Unsafe version ofpNext()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
nstage
public static int nstage(long struct) Unsafe version ofstage()
. -
nmodule
public static long nmodule(long struct) Unsafe version ofmodule()
. -
npName
Unsafe version ofpName()
. -
npNameString
Unsafe version ofpNameString()
. -
npSpecializationInfo
Unsafe version ofpSpecializationInfo()
. -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType
. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
nstage
public static void nstage(long struct, int value) Unsafe version ofstage
. -
nmodule
public static void nmodule(long struct, long value) Unsafe version ofmodule
. -
npName
Unsafe version ofpName
. -
npSpecializationInfo
Unsafe version ofpSpecializationInfo
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-