Class VkPipelineShaderStageCreateInfo
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.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
geometryShaderfeature is not enabled,stagemust not beSHADER_STAGE_GEOMETRY_BIT - If the
tessellationShaderfeature is not enabled,stagemust not beSHADER_STAGE_TESSELLATION_CONTROL_BITorSHADER_STAGE_TESSELLATION_EVALUATION_BIT - If the
meshShadersfeature is not enabled,stagemust not beSHADER_STAGE_MESH_BIT_EXT - If the
taskShadersfeature is not enabled,stagemust not beSHADER_STAGE_TASK_BIT_EXT - If the
clustercullingShaderfeature is not enabled,stagemust not beSHADER_STAGE_CLUSTER_CULLING_BIT_HUAWEI stagemust not beSHADER_STAGE_ALL_GRAPHICS, orSHADER_STAGE_ALLpNamemust be the name of anOpEntryPointinmodulewith an execution model that matchesstage- If the identified entry point includes any variable in its interface that is declared with the
ClipDistanceBuiltIndecoration, 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
CullDistanceBuiltIndecoration, that variable must not have an array size greater thanVkPhysicalDeviceLimits::maxCullDistances - If the identified entry point includes variables in its interface that are declared with the
ClipDistanceBuiltIndecoration and variables in its interface that are declared with theCullDistanceBuiltIndecoration, 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
SampleMaskBuiltIndecoration, that variable must not have an array size greater thanVkPhysicalDeviceLimits::maxSampleMaskWords - If
stageisSHADER_STAGE_TESSELLATION_CONTROL_BITorSHADER_STAGE_TESSELLATION_EVALUATION_BIT, and the identified entry point has anOpExecutionModeinstruction specifying a patch size withOutputVertices, the patch size must be greater than 0 and less than or equal toVkPhysicalDeviceLimits::maxTessellationPatchSize - If
stageisSHADER_STAGE_GEOMETRY_BIT, the identified entry point must have anOpExecutionModeinstruction specifying a maximum output vertex count that is greater than 0 and less than or equal toVkPhysicalDeviceLimits::maxGeometryOutputVertices - If
stageisSHADER_STAGE_GEOMETRY_BIT, the identified entry point must have anOpExecutionModeinstruction specifying an invocation count that is greater than 0 and less than or equal toVkPhysicalDeviceLimits::maxGeometryShaderInvocations - If
stageis eitherSHADER_STAGE_VERTEX_BIT,SHADER_STAGE_TESSELLATION_CONTROL_BIT,SHADER_STAGE_TESSELLATION_EVALUATION_BIT, orSHADER_STAGE_GEOMETRY_BIT, and the identified entry point writes toLayerfor any primitive, it must write the same value toLayerfor all vertices of a given primitive - If
stageis eitherSHADER_STAGE_VERTEX_BIT,SHADER_STAGE_TESSELLATION_CONTROL_BIT,SHADER_STAGE_TESSELLATION_EVALUATION_BIT, orSHADER_STAGE_GEOMETRY_BIT, and the identified entry point writes toViewportIndexfor any primitive, it must write the same value toViewportIndexfor all vertices of a given primitive - If
stageisSHADER_STAGE_FRAGMENT_BIT, and the identified entry point writes toFragDepthin 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
stageisSHADER_STAGE_FRAGMENT_BIT, and the identified entry point writes toFragStencilRefEXTin 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
flagshas thePIPELINE_SHADER_STAGE_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BITflag set, thesubgroupSizeControlfeature must be enabled - If
flagshas thePIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BITflag set, thecomputeFullSubgroupsfeature must be enabled - If
flagsincludesPIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BIT,stagemust be one ofSHADER_STAGE_MESH_BIT_EXT,SHADER_STAGE_TASK_BIT_EXT, orSHADER_STAGE_COMPUTE_BIT - If a
VkPipelineShaderStageRequiredSubgroupSizeCreateInfostructure is included in thepNextchain,flagsmust not have thePIPELINE_SHADER_STAGE_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BITflag set - If a
VkPipelineShaderStageRequiredSubgroupSizeCreateInfostructure is included in thepNextchain, thesubgroupSizeControlfeature must be enabled, andstagemust be a valid bit specified inrequiredSubgroupSizeStages - If a
VkPipelineShaderStageRequiredSubgroupSizeCreateInfostructure is included in thepNextchain andstageisSHADER_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::requiredSubgroupSizeandmaxComputeWorkgroupSubgroups - If a
VkPipelineShaderStageRequiredSubgroupSizeCreateInfostructure is included in thepNextchain, andflagshas thePIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BITflag set, the local workgroup size in the X dimension of the pipeline must be a multiple ofVkPipelineShaderStageRequiredSubgroupSizeCreateInfo::requiredSubgroupSize - If
flagshas both thePIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BITandPIPELINE_SHADER_STAGE_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BITflags set, the local workgroup size in the X dimension of the pipeline must be a multiple ofmaxSubgroupSize - If
flagshas thePIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BITflag set andflagsdoes not have thePIPELINE_SHADER_STAGE_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BITflag set and noVkPipelineShaderStageRequiredSubgroupSizeCreateInfostructure is included in thepNextchain, the local workgroup size in the X dimension of the pipeline must be a multiple ofsubgroupSize - If
moduleuses theOpTypeCooperativeMatrixKHRinstruction with aScopeequal toSubgroup, then the local workgroup size in the X dimension of the pipeline must be a multiple ofsubgroupSize - If
moduleuses theOpTypeCooperativeMatrixKHRinstruction with aScopeequal toWorkgroup, then the local workgroup size in the X dimension of the pipeline must be a multiple ofsubgroupSizeand the total local workgroup size must be a power of two multiple ofsubgroupSizeand must be less than or equal to cooperativeMatrixWorkgroupScopeMaxWorkgroupSize - If a shader module identifier is not specified for this
stage,modulemust be a validVkShaderModule, or thepNextchain of the parent stext:Vk*CreateInfo structure must setVkPipelineBinaryInfoKHR::binaryCountto a value greater than 0, if none of the following features are enabled: - If a shader module identifier is not specified for this
stage,modulemust be a validVkShaderModule, or there must be a validVkShaderModuleCreateInfostructure in thepNextchain , or thepNextchain of the parent stext:Vk*CreateInfo structure must setVkPipelineBinaryInfoKHR::binaryCountto a value greater than 0, - If a shader module identifier is specified for this
stage, thepNextchain must not include aVkShaderModuleCreateInfostructure - If a shader module identifier is specified for this
stage,modulemust 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)
sTypemust beSTRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkDebugUtilsObjectNameInfoEXT,VkPipelineRobustnessCreateInfo,VkPipelineShaderStageModuleIdentifierCreateInfoEXT,VkPipelineShaderStageNodeCreateInfoAMDX,VkPipelineShaderStageRequiredSubgroupSizeCreateInfo,VkShaderModuleCreateInfo, orVkShaderModuleValidationCacheCreateInfoEXT - The
sTypevalue of each struct in thepNextchain must be unique flagsmust be a valid combination ofVkPipelineShaderStageCreateFlagBitsvaluesstagemust be a validVkShaderStageFlagBitsvalue- If
moduleis notNULL_HANDLE,modulemust be a validVkShaderModulehandle pNamemust be a null-terminated UTF-8 string- If
pSpecializationInfois notNULL,pSpecializationInfomust be a valid pointer to a validVkSpecializationInfostructure
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
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkPipelineShaderStageCreateInfostructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkPipelineShaderStageCreateInfo(ByteBuffer container) Creates aVkPipelineShaderStageCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkPipelineShaderStageCreateInfoinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkPipelineShaderStageCreateInfo.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkPipelineShaderStageCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newVkPipelineShaderStageCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.Deprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.callocStack(org.lwjgl.system.MemoryStack stack) Deprecated.create()Returns a newVkPipelineShaderStageCreateInfoinstance allocated withBufferUtils.create(int capacity) Returns a newVkPipelineShaderStageCreateInfo.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkPipelineShaderStageCreateInfoinstance for the specified memory address.create(long address, int capacity) Create aVkPipelineShaderStageCreateInfo.Bufferinstance at the specified memory.static @Nullable VkPipelineShaderStageCreateInfocreateSafe(long address) static @Nullable VkPipelineShaderStageCreateInfo.BuffercreateSafe(long address, int capacity) intflags()a bitmask ofVkPipelineShaderStageCreateFlagBitsspecifying how the pipeline shader stage will be generated.flags(int value) Sets the specified value to theflags()field.malloc()Returns a newVkPipelineShaderStageCreateInfoinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkPipelineShaderStageCreateInfo.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkPipelineShaderStageCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newVkPipelineShaderStageCreateInfoinstance allocated on the specifiedMemoryStack.Deprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.mallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.longmodule()optionally aVkShaderModuleobject containing the shader code for this stage.module(long value) Sets the specified value to themodule()field.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static longnmodule(long struct) Unsafe version ofmodule().static voidnmodule(long struct, long value) Unsafe version ofmodule.static ByteBuffernpName(long struct) Unsafe version ofpName().static voidnpName(long struct, ByteBuffer value) Unsafe version ofpName.static StringnpNameString(long struct) Unsafe version ofpNameString().static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static @Nullable VkSpecializationInfonpSpecializationInfo(long struct) Unsafe version ofpSpecializationInfo().static voidnpSpecializationInfo(long struct, @Nullable VkSpecializationInfo value) Unsafe version ofpSpecializationInfo.static intnstage(long struct) Unsafe version ofstage().static voidnstage(long struct, int value) Unsafe version ofstage.static intnsType(long struct) Unsafe version ofsType().static voidnsType(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.longpNext()NULLor a pointer to a structure extending this structure.pNext(long value) Sets the specified value to thepNext()field.Prepends the specifiedVkDebugUtilsObjectNameInfoEXTvalue to thepNextchain.Prepends the specifiedVkPipelineRobustnessCreateInfovalue to thepNextchain.Prepends the specifiedVkPipelineRobustnessCreateInfoEXTvalue to thepNextchain.Prepends the specifiedVkPipelineShaderStageModuleIdentifierCreateInfoEXTvalue to thepNextchain.Prepends the specifiedVkPipelineShaderStageNodeCreateInfoAMDXvalue to thepNextchain.Prepends the specifiedVkPipelineShaderStageRequiredSubgroupSizeCreateInfovalue to thepNextchain.Prepends the specifiedVkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXTvalue to thepNextchain.pNext(VkShaderModuleCreateInfo value) Prepends the specifiedVkShaderModuleCreateInfovalue to thepNextchain.Prepends the specifiedVkShaderModuleValidationCacheCreateInfoEXTvalue to thepNextchain.Prepends the specifiedVkShaderRequiredSubgroupSizeCreateInfoEXTvalue to thepNextchain.@Nullable VkSpecializationInfopSpecializationInfo(@Nullable VkSpecializationInfo value) Sets the address of the specifiedVkSpecializationInfoto thepSpecializationInfo()field.set(int sType, long pNext, int flags, int stage, long module, ByteBuffer pName, @Nullable VkSpecializationInfo pSpecializationInfo) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()intstage()aVkShaderStageFlagBitsvalue specifying a single pipeline stage.stage(int value) Sets the specified value to thestage()field.intsType()aVkStructureTypevalue identifying this structure.sType(int value) Sets the specified value to thesType()field.Sets theSTRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFOvalue to thesType()field.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aVkPipelineShaderStageCreateInfoinstance 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkPipelineShaderStageCreateInfo>
-
sType
public int sType()aVkStructureTypevalue identifying this structure. -
pNext
public long pNext()NULLor a pointer to a structure extending this structure. -
flags
public int flags()a bitmask ofVkPipelineShaderStageCreateFlagBitsspecifying how the pipeline shader stage will be generated. -
stage
public int stage()aVkShaderStageFlagBitsvalue specifying a single pipeline stage. -
module
public long module()optionally aVkShaderModuleobject 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_INFOvalue to thesType()field. -
pNext
Sets the specified value to thepNext()field. -
pNext
Prepends the specifiedVkDebugUtilsObjectNameInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkPipelineRobustnessCreateInfovalue to thepNextchain. -
pNext
Prepends the specifiedVkPipelineRobustnessCreateInfoEXTvalue to thepNextchain. -
pNext
public VkPipelineShaderStageCreateInfo pNext(VkPipelineShaderStageModuleIdentifierCreateInfoEXT value) Prepends the specifiedVkPipelineShaderStageModuleIdentifierCreateInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkPipelineShaderStageNodeCreateInfoAMDXvalue to thepNextchain. -
pNext
public VkPipelineShaderStageCreateInfo pNext(VkPipelineShaderStageRequiredSubgroupSizeCreateInfo value) Prepends the specifiedVkPipelineShaderStageRequiredSubgroupSizeCreateInfovalue to thepNextchain. -
pNext
public VkPipelineShaderStageCreateInfo pNext(VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT value) Prepends the specifiedVkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkShaderModuleCreateInfovalue to thepNextchain. -
pNext
Prepends the specifiedVkShaderModuleValidationCacheCreateInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkShaderRequiredSubgroupSizeCreateInfoEXTvalue to thepNextchain. -
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 specifiedVkSpecializationInfoto 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 newVkPipelineShaderStageCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkPipelineShaderStageCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkPipelineShaderStageCreateInfoinstance allocated withBufferUtils. -
create
Returns a newVkPipelineShaderStageCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkPipelineShaderStageCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkPipelineShaderStageCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkPipelineShaderStageCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkPipelineShaderStageCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable 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 public static VkPipelineShaderStageCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
@Deprecated public static VkPipelineShaderStageCreateInfo callocStack(org.lwjgl.system.MemoryStack stack) 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, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static VkPipelineShaderStageCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVkPipelineShaderStageCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkPipelineShaderStageCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPipelineShaderStageCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkPipelineShaderStageCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkPipelineShaderStageCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkPipelineShaderStageCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand 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
-