Class VkGraphicsPipelineCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkGraphicsPipelineCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkGraphicsPipelineCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of a newly created graphics pipeline.Description
The parameters
basePipelineHandleandbasePipelineIndexare described in more detail in Pipeline Derivatives.If any shader stage fails to compile, the compile log will be reported back to the application, and
ERROR_INVALID_SHADER_NVwill be generated.The state required for a graphics pipeline is divided into vertex input state, pre-rasterization shader state, fragment shader state, and fragment output state.
Vertex input state is defined by:
Pre-rasterization shader state is defined by:
VkPipelineShaderStageCreateInfoentries for:- Vertex shaders
- Tessellation control shaders
- Tessellation evaluation shaders
- Geometry shaders
- Task shaders
- Mesh shaders
- Within the
VkPipelineLayout, all bindings that affect the specified shader stages VkPipelineViewportStateCreateInfoVkPipelineRasterizationStateCreateInfoVkPipelineTessellationStateCreateInfoif tessellation stages are included.VkRenderPassandsubpassparameterVkPipelineDiscardRectangleStateCreateInfoEXTVkPipelineFragmentShadingRateStateCreateInfoKHRVkPipelineFragmentShadingRateEnumStateCreateInfoNV
Fragment shader state is defined by:
- A
VkPipelineShaderStageCreateInfoentry for the fragment shader - Within the
VkPipelineLayout, all bindings that affect the fragment shader VkPipelineMultisampleStateCreateInfoVkPipelineDepthStencilStateCreateInfoVkRenderPassandsubpassparameterVkPipelineFragmentShadingRateStateCreateInfoKHRVkPipelineFragmentShadingRateEnumStateCreateInfoNV
Fragment output state is defined by:
VkPipelineColorBlendStateCreateInfo- The
alphaToCoverageEnableandalphaToOneEnablemembers ofVkPipelineMultisampleStateCreateInfo. VkRenderPassandsubpassparameter
A complete graphics pipeline always includes pre-rasterization shader state, with other subsets included depending on that state. If the pre-rasterization shader state includes a vertex shader, then vertex input state is included in a complete graphics pipeline. If the value of
VkPipelineRasterizationStateCreateInfo::rasterizerDiscardEnablein the pre-rasterization shader state isFALSEor theDYNAMIC_STATE_RASTERIZER_DISCARD_ENABLEdynamic state is enabled fragment shader state and fragment output interface state is included in a complete graphics pipeline.Pipelines must be created with a complete set of pipeline state.
Valid Usage
- If
flagscontains thePIPELINE_CREATE_DERIVATIVE_BITflag, andbasePipelineIndexis -1,basePipelineHandlemust be a valid handle to a graphicsVkPipeline - If
flagscontains thePIPELINE_CREATE_DERIVATIVE_BITflag, andbasePipelineHandleisNULL_HANDLE,basePipelineIndexmust be a valid index into the calling command’spCreateInfosparameter - If
flagscontains thePIPELINE_CREATE_DERIVATIVE_BITflag, andbasePipelineIndexis not -1,basePipelineHandlemust beNULL_HANDLE - If
flagscontains thePIPELINE_CREATE_DERIVATIVE_BITflag, andbasePipelineHandleis notNULL_HANDLE,basePipelineIndexmust be -1 - The
stagemember of each element ofpStagesmust be unique - If the pipeline is being created with pre-rasterization shader state the geometric shader stages provided in
pStagesmust be either from the mesh shading pipeline (stageisSHADER_STAGE_TASK_BIT_NVorSHADER_STAGE_MESH_BIT_NV) or from the primitive shading pipeline (stageisSHADER_STAGE_VERTEX_BIT,SHADER_STAGE_TESSELLATION_CONTROL_BIT,SHADER_STAGE_TESSELLATION_EVALUATION_BIT, orSHADER_STAGE_GEOMETRY_BIT) - If the pipeline is being created with pre-rasterization shader state the
stagemember of one element ofpStagesmust be eitherSHADER_STAGE_VERTEX_BITorSHADER_STAGE_MESH_BIT_NV - The
stagemember of each element ofpStagesmust not beSHADER_STAGE_COMPUTE_BIT - If the pipeline is being created with pre-rasterization shader state and
pStagesincludes a tessellation control shader stage, it must include a tessellation evaluation shader stage - If the pipeline is being created with pre-rasterization shader state and
pStagesincludes a tessellation evaluation shader stage, it must include a tessellation control shader stage - If the pipeline is being created with pre-rasterization shader state and
pStagesincludes a tessellation control shader stage and a tessellation evaluation shader stage,pTessellationStatemust be a valid pointer to a validVkPipelineTessellationStateCreateInfostructure - If the pipeline is being created with pre-rasterization shader state and
pStagesincludes tessellation shader stages, the shader code of at least one stage must contain anOpExecutionModeinstruction specifying the type of subdivision in the pipeline - If the pipeline is being created with pre-rasterization shader state and
pStagesincludes tessellation shader stages, and the shader code of both stages contain anOpExecutionModeinstruction specifying the type of subdivision in the pipeline, they must both specify the same subdivision mode - If the pipeline is being created with pre-rasterization shader state and
pStagesincludes tessellation shader stages, the shader code of at least one stage must contain anOpExecutionModeinstruction specifying the output patch size in the pipeline - If the pipeline is being created with pre-rasterization shader state and
pStagesincludes tessellation shader stages, and the shader code of both contain anOpExecutionModeinstruction specifying the out patch size in the pipeline, they must both specify the same patch size - If the pipeline is being created with pre-rasterization shader state and
pStagesincludes tessellation shader stages, thetopologymember ofpInputAssemblymust bePRIMITIVE_TOPOLOGY_PATCH_LIST - If the pipeline is being created with pre-rasterization shader state and the
topologymember ofpInputAssemblyisPRIMITIVE_TOPOLOGY_PATCH_LIST,pStagesmust include tessellation shader stages - If the pipeline is being created with pre-rasterization shader state and
pStagesincludes a geometry shader stage, and does not include any tessellation shader stages, its shader code must contain anOpExecutionModeinstruction specifying an input primitive type that is compatible with the primitive topology specified inpInputAssembly - If the pipeline is being created with pre-rasterization shader state and
pStagesincludes a geometry shader stage, and also includes tessellation shader stages, its shader code must contain anOpExecutionModeinstruction specifying an input primitive type that is compatible with the primitive topology that is output by the tessellation stages - If the pipeline is being created with pre-rasterization shader state and fragment shader state, it includes both a fragment shader and a geometry shader, and the fragment shader code reads from an input variable that is decorated with
PrimitiveId, then the geometry shader code must write to a matching output variable, decorated withPrimitiveId, in all execution paths - If the pipeline is being created with pre-rasterization shader state, it includes a mesh shader and the fragment shader code reads from an input variable that is decorated with
PrimitiveId, then the mesh shader code must write to a matching output variable, decorated withPrimitiveId, in all execution paths - If
renderPassis notNULL_HANDLEand the pipeline is being created with fragment shader state the fragment shader must not read from any input attachment that is defined asATTACHMENT_UNUSEDinsubpass - If the pipeline is being created with pre-rasterization shader state and multiple pre-rasterization shader stages are included in
pStages, the shader code for the entry points identified by thosepStagesand the rest of the state identified by this structure must adhere to the pipeline linking rules described in the Shader Interfaces chapter - If the pipeline is being created with pre-rasterization shader state and fragment shader state, the fragment shader and last pre-rasterization shader stage and any relevant state must adhere to the pipeline linking rules described in the Shader Interfaces chapter
- If
renderPassis notNULL_HANDLE, the pipeline is being created with fragment shader state, andsubpassuses a depth/stencil attachment inrenderPasswith a read-only layout for the depth aspect in theVkAttachmentReferencedefined bysubpass, thedepthWriteEnablemember ofpDepthStencilStatemust beFALSE - If
renderPassis notNULL_HANDLE, the pipeline is being created with fragment shader state, andsubpassuses a depth/stencil attachment inrenderPasswith a read-only layout for the stencil aspect in theVkAttachmentReferencedefined bysubpass, thefailOp,passOpanddepthFailOpmembers of each of thefrontandbackmembers ofpDepthStencilStatemust beSTENCIL_OP_KEEP - If
renderPassis notNULL_HANDLE, and the pipeline is being created with fragment output interface state, then for each color attachment in the subpass, if the potential format features of the format of the corresponding attachment description do not containFORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT, then theblendEnablemember of the corresponding element of thepAttachmentsmember ofpColorBlendStatemust beFALSE - If
renderPassis notNULL_HANDLE, and the pipeline is being created with fragment output interface state, and the subpass uses color attachments, theattachmentCountmember ofpColorBlendStatemust be equal to thecolorAttachmentCountused to createsubpass - If the pipeline is being created with pre-rasterization shader state, and no element of the
pDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_VIEWPORTorDYNAMIC_STATE_VIEWPORT_WITH_COUNT, thepViewportsmember ofpViewportStatemust be a valid pointer to an array ofpViewportState\u2192viewportCountvalidVkViewportstructures - If the pipeline is being created with pre-rasterization shader state, and no element of the
pDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_SCISSORorDYNAMIC_STATE_SCISSOR_WITH_COUNT, thepScissorsmember ofpViewportStatemust be a valid pointer to an array ofpViewportState\u2192scissorCountVkRect2Dstructures - If the pipeline is being created with pre-rasterization shader state, and the wide lines feature is not enabled, and no element of the
pDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_LINE_WIDTH, thelineWidthmember ofpRasterizationStatemust be1.0 - If the pipeline is being created with pre-rasterization shader state, and the
rasterizerDiscardEnablemember ofpRasterizationStateisFALSE,pViewportStatemust be a valid pointer to a validVkPipelineViewportStateCreateInfostructure - If the pipeline is being created with pre-rasterization shader state, and the graphics pipeline state was created with the
DYNAMIC_STATE_RASTERIZER_DISCARD_ENABLEdynamic state enabled,pViewportStatemust be a valid pointer to a validVkPipelineViewportStateCreateInfostructure - If the pipeline is being created with fragment shader state,
pMultisampleStatemust be a valid pointer to a validVkPipelineMultisampleStateCreateInfostructure - If
renderPassis notNULL_HANDLE, the pipeline is being created with fragment shader state, andsubpassuses a depth/stencil attachment,pDepthStencilStatemust be a valid pointer to a validVkPipelineDepthStencilStateCreateInfostructure - If
renderPassis notNULL_HANDLE, the pipeline is being created with fragment output interface state, andsubpassuses color attachments,pColorBlendStatemust be a valid pointer to a validVkPipelineColorBlendStateCreateInfostructure - If the pipeline is being created with pre-rasterization shader state, the depth bias clamping feature is not enabled, no element of the
pDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_DEPTH_BIAS, and thedepthBiasEnablemember ofpRasterizationStateisTRUE, thedepthBiasClampmember ofpRasterizationStatemust be0.0 - If the pipeline is being created with fragment shader state, and the
VK_EXT_depth_range_unrestrictedextension is not enabled and no element of thepDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_DEPTH_BOUNDS, and thedepthBoundsTestEnablemember ofpDepthStencilStateisTRUE, theminDepthBoundsandmaxDepthBoundsmembers ofpDepthStencilStatemust be between0.0and1.0, inclusive - If the pipeline is being created with fragment shader state, and no element of the
pDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_SAMPLE_LOCATIONS_EXT, and thesampleLocationsEnablemember of aVkPipelineSampleLocationsStateCreateInfoEXTstructure included in thepNextchain ofpMultisampleStateisTRUE,sampleLocationsInfo.sampleLocationGridSize.widthmust evenly divideVkMultisamplePropertiesEXT::sampleLocationGridSize.widthas returned byGetPhysicalDeviceMultisamplePropertiesEXTwith asamplesparameter equalingrasterizationSamples - If the pipeline is being created with fragment shader state, and no element of the
pDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_SAMPLE_LOCATIONS_EXT, and thesampleLocationsEnablemember of aVkPipelineSampleLocationsStateCreateInfoEXTstructure included in thepNextchain ofpMultisampleStateisTRUE,sampleLocationsInfo.sampleLocationGridSize.heightmust evenly divideVkMultisamplePropertiesEXT::sampleLocationGridSize.heightas returned byGetPhysicalDeviceMultisamplePropertiesEXTwith asamplesparameter equalingrasterizationSamples - If the pipeline is being created with fragment shader state, and no element of the
pDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_SAMPLE_LOCATIONS_EXT, and thesampleLocationsEnablemember of aVkPipelineSampleLocationsStateCreateInfoEXTstructure included in thepNextchain ofpMultisampleStateisTRUE,sampleLocationsInfo.sampleLocationsPerPixelmust equalrasterizationSamples - If the pipeline is being created with fragment shader state, and the
sampleLocationsEnablemember of aVkPipelineSampleLocationsStateCreateInfoEXTstructure included in thepNextchain ofpMultisampleStateisTRUE, the fragment shader code must not statically use the extended instructionInterpolateAtSample layoutmust be consistent with all shaders specified inpStages- If the pipeline is being created with fragment shader state, and neither the
VK_AMD_mixed_attachment_samplesnor theVK_NV_framebuffer_mixed_samplesextensions are enabled, and ifsubpassuses color and/or depth/stencil attachments, then therasterizationSamplesmember ofpMultisampleStatemust be the same as the sample count for those subpass attachments - If the pipeline is being created with fragment shader state, and the
VK_AMD_mixed_attachment_samplesextension is enabled, and ifsubpassuses color and/or depth/stencil attachments, then therasterizationSamplesmember ofpMultisampleStatemust equal the maximum of the sample counts of those subpass attachments - If the pipeline is being created with fragment shader state, and the
VK_NV_framebuffer_mixed_samplesextension is enabled, and ifsubpasshas a depth/stencil attachment and depth test, stencil test, or depth bounds test are enabled, then therasterizationSamplesmember ofpMultisampleStatemust be the same as the sample count of the depth/stencil attachment - If the pipeline is being created with fragment shader state, and the
VK_NV_framebuffer_mixed_samplesextension is enabled, and ifsubpasshas any color attachments, then therasterizationSamplesmember ofpMultisampleStatemust be greater than or equal to the sample count for those subpass attachments - If the pipeline is being created with fragment shader state, and the
VK_NV_coverage_reduction_modeextension is enabled, the coverage reduction mode specified byVkPipelineCoverageReductionStateCreateInfoNV::coverageReductionMode, therasterizationSamplesmember ofpMultisampleStateand the sample counts for the color and depth/stencil attachments (if the subpass has them) must be a valid combination returned byvkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV - If the pipeline is being created with fragment shader state and
subpassdoes not use any color and/or depth/stencil attachments, then therasterizationSamplesmember ofpMultisampleStatemust follow the rules for a zero-attachment subpass - If
renderPassis a valid renderPass,subpassmust be a valid subpass withinrenderPass - If
renderPassis a valid renderPass, the pipeline is being created with pre-rasterization shader state, and therenderPasshas multiview enabled andsubpasshas more than one bit set in the view mask andmultiviewTessellationShaderis not enabled, thenpStagesmust not include tessellation shaders - If
renderPassis a valid renderPass, the pipeline is being created with pre-rasterization shader state, and therenderPasshas multiview enabled andsubpasshas more than one bit set in the view mask andmultiviewGeometryShaderis not enabled, thenpStagesmust not include a geometry shader - If
renderPassis a valid renderPass, the pipeline is being created with pre-rasterization shader state, and therenderPasshas multiview enabled andsubpasshas more than one bit set in the view mask, shaders in the pipeline must not write to theLayerbuilt-in output - If
renderPassis a valid renderPass and the pipeline is being created with pre-rasterization shader state, and therenderPasshas multiview enabled, then all shaders must not include variables decorated with theLayerbuilt-in decoration in their interfaces flagsmust not contain thePIPELINE_CREATE_DISPATCH_BASEflag- If the pipeline is being created with fragment shader state and an input attachment was referenced by an
aspectMaskatrenderPasscreation time, the fragment shader must only read from the aspects that were specified for that input attachment - The number of resources in
layoutaccessible to each shader stage that is used by the pipeline must be less than or equal toVkPhysicalDeviceLimits::maxPerStageResources - If the pipeline is being created with pre-rasterization shader state, and no element of the
pDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_VIEWPORT_W_SCALING_NV, and theviewportWScalingEnablemember of aVkPipelineViewportWScalingStateCreateInfoNVstructure, included in thepNextchain ofpViewportState, isTRUE, thepViewportWScalingsmember of theVkPipelineViewportWScalingStateCreateInfoNVmust be a pointer to an array ofVkPipelineViewportWScalingStateCreateInfoNV::viewportCountvalidVkViewportWScalingNVstructures - If the pipeline is being created with pre-rasterization shader state, and no element of the
pDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV, and ifpViewportState\u2192pNextchain includes aVkPipelineViewportExclusiveScissorStateCreateInfoNVstructure, and if itsexclusiveScissorCountmember is not 0, then itspExclusiveScissorsmember must be a valid pointer to an array ofexclusiveScissorCountVkRect2Dstructures - If the pipeline is being created with pre-rasterization shader state, and no element of the
pDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV, and ifpViewportState\u2192pNextchain includes aVkPipelineViewportShadingRateImageStateCreateInfoNVstructure, then itspShadingRatePalettesmember must be a valid pointer to an array ofviewportCountvalidVkShadingRatePaletteNVstructures - If the pipeline is being created with pre-rasterization shader state, and no element of the
pDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_DISCARD_RECTANGLE_EXT, and ifpNextchain includes aVkPipelineDiscardRectangleStateCreateInfoEXTstructure, and if itsdiscardRectangleCountmember is not 0, then itspDiscardRectanglesmember must be a valid pointer to an array ofdiscardRectangleCountVkRect2Dstructures - If the pipeline is being created with vertex input state,
pInputAssemblyStatemust be a valid pointer to a validVkPipelineInputAssemblyStateCreateInfostructure - If the pipeline is being created with pre-rasterization shader state, the
Xfbexecution mode can be specified by no more than one shader stage inpStages - If the pipeline is being created with pre-rasterization shader state, and any shader stage in
pStagesspecifiesXfbexecution mode it must be the last pre-rasterization shader stage - If the pipeline is being created with pre-rasterization shader state, and a
VkPipelineRasterizationStateStreamCreateInfoEXT::rasterizationStreamvalue other than zero is specified, all variables in the output interface of the entry point being compiled decorated withPosition,PointSize,ClipDistance, orCullDistancemust be decorated with identicalStreamvalues that match therasterizationStream - If the pipeline is being created with pre-rasterization shader state, and
VkPipelineRasterizationStateStreamCreateInfoEXT::rasterizationStreamis zero, or not specified, all variables in the output interface of the entry point being compiled decorated withPosition,PointSize,ClipDistance, orCullDistancemust be decorated with aStreamvalue of zero, or must not specify theStreamdecoration - If the pipeline is being created with pre-rasterization shader state, and the last pre-rasterization shader stage is a geometry shader, and that geometry shader uses the
GeometryStreamscapability, thenVkPhysicalDeviceTransformFeedbackFeaturesEXT::geometryStreamsfeature must be enabled - If the pipeline is being created with pre-rasterization shader state, and there are any mesh shader stages in the pipeline there must not be any shader stage in the pipeline with a
Xfbexecution mode - If the pipeline is being created with pre-rasterization shader state and at least one of fragment output interface state or fragment shader state, the
lineRasterizationModemember of aVkPipelineRasterizationLineStateCreateInfoEXTstructure included in thepNextchain ofpRasterizationStateisLINE_RASTERIZATION_MODE_BRESENHAM_EXTorLINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT, then thealphaToCoverageEnable,alphaToOneEnable, andsampleShadingEnablemembers ofpMultisampleStatemust all beFALSE - If the pipeline is being created with pre-rasterization shader state, the
stippledLineEnablemember ofVkPipelineRasterizationLineStateCreateInfoEXTisTRUE, and no element of thepDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_LINE_STIPPLE_EXT, then thelineStippleFactormember ofVkPipelineRasterizationLineStateCreateInfoEXTmust be in the range[1,256] flagsmust not includePIPELINE_CREATE_LIBRARY_BIT_KHRflagsmust not includePIPELINE_CREATE_RAY_TRACING_NO_NULL_ANY_HIT_SHADERS_BIT_KHRflagsmust not includePIPELINE_CREATE_RAY_TRACING_NO_NULL_CLOSEST_HIT_SHADERS_BIT_KHRflagsmust not includePIPELINE_CREATE_RAY_TRACING_NO_NULL_MISS_SHADERS_BIT_KHRflagsmust not includePIPELINE_CREATE_RAY_TRACING_NO_NULL_INTERSECTION_SHADERS_BIT_KHRflagsmust not includePIPELINE_CREATE_RAY_TRACING_SKIP_TRIANGLES_BIT_KHRflagsmust not includePIPELINE_CREATE_RAY_TRACING_SKIP_AABBS_BIT_KHRflagsmust not includePIPELINE_CREATE_RAY_TRACING_SHADER_GROUP_HANDLE_CAPTURE_REPLAY_BIT_KHRflagsmust not includePIPELINE_CREATE_RAY_TRACING_ALLOW_MOTION_BIT_NV- If the pipeline is being created with pre-rasterization shader state, and
DYNAMIC_STATE_VIEWPORT_WITH_COUNTis included in thepDynamicStatesarray thenviewportCountmust be zero - If the pipeline is being created with pre-rasterization shader state, and
DYNAMIC_STATE_SCISSOR_WITH_COUNTis included in thepDynamicStatesarray thenscissorCountmust be zero - If the pipeline is being created with pre-rasterization shader state, and
DYNAMIC_STATE_VIEWPORT_WITH_COUNTis included in thepDynamicStatesarray thenDYNAMIC_STATE_VIEWPORTmust not be present - If the pipeline is being created with pre-rasterization shader state, and
DYNAMIC_STATE_SCISSOR_WITH_COUNTis included in thepDynamicStatesarray thenDYNAMIC_STATE_SCISSORmust not be present - If the extendedDynamicState2LogicOp feature is not enabled, there must be no element of the
pDynamicStatesmember ofpDynamicStateset toDYNAMIC_STATE_LOGIC_OP_EXT - If the extendedDynamicState2PatchControlPoints feature is not enabled, there must be no element of the
pDynamicStatesmember ofpDynamicStateset toDYNAMIC_STATE_PATCH_CONTROL_POINTS_EXT - If
flagsincludesPIPELINE_CREATE_INDIRECT_BINDABLE_BIT_NV, then theVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV::deviceGeneratedCommandsfeature must be enabled - If the pipeline is being created with pre-rasterization shader state and
flagsincludesPIPELINE_CREATE_INDIRECT_BINDABLE_BIT_NV, then all stages must not specifyXfbexecution mode - If the
pipelineCreationCacheControlfeature is not enabled,flagsmust not includePIPELINE_CREATE_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BITorPIPELINE_CREATE_EARLY_RETURN_ON_FAILURE_BIT - If the pipeline is being created with pre-rasterization shader state or fragment shader state and
DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHRis not included inpDynamicState\u2192pDynamicStates,VkPipelineFragmentShadingRateStateCreateInfoKHR::fragmentSize.widthmust be greater than or equal to 1 - If the pipeline is being created with pre-rasterization shader state or fragment shader state and
DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHRis not included inpDynamicState\u2192pDynamicStates,VkPipelineFragmentShadingRateStateCreateInfoKHR::fragmentSize.heightmust be greater than or equal to 1 - If the pipeline is being created with pre-rasterization shader state or fragment shader state and
DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHRis not included inpDynamicState\u2192pDynamicStates,VkPipelineFragmentShadingRateStateCreateInfoKHR::fragmentSize.widthmust be a power-of-two value - If the pipeline is being created with pre-rasterization shader state or fragment shader state and
DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHRis not included inpDynamicState\u2192pDynamicStates,VkPipelineFragmentShadingRateStateCreateInfoKHR::fragmentSize.heightmust be a power-of-two value - If the pipeline is being created with pre-rasterization shader state or fragment shader state and
DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHRis not included inpDynamicState\u2192pDynamicStates,VkPipelineFragmentShadingRateStateCreateInfoKHR::fragmentSize.widthmust be less than or equal to 4 - If the pipeline is being created with pre-rasterization shader state or fragment shader state and
DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHRis not included inpDynamicState\u2192pDynamicStates,VkPipelineFragmentShadingRateStateCreateInfoKHR::fragmentSize.heightmust be less than or equal to 4 - If the pipeline is being created with pre-rasterization shader state or fragment shader state and
DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHRis not included inpDynamicState\u2192pDynamicStates, and thepipelineFragmentShadingRatefeature is not enabled,VkPipelineFragmentShadingRateStateCreateInfoKHR::fragmentSize.widthandVkPipelineFragmentShadingRateStateCreateInfoKHR::fragmentSize.heightmust both be equal to 1 - If the pipeline is being created with pre-rasterization shader state or fragment shader state and
DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHRis not included inpDynamicState\u2192pDynamicStates, and theprimitiveFragmentShadingRatefeature is not enabled,VkPipelineFragmentShadingRateStateCreateInfoKHR::combinerOps[0] must beFRAGMENT_SHADING_RATE_COMBINER_OP_KEEP_KHR - If the pipeline is being created with pre-rasterization shader state or fragment shader state and
DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHRis not included inpDynamicState\u2192pDynamicStates, and theattachmentFragmentShadingRatefeature is not enabled,VkPipelineFragmentShadingRateStateCreateInfoKHR::combinerOps[1] must beFRAGMENT_SHADING_RATE_COMBINER_OP_KEEP_KHR - If the pipeline is being created with pre-rasterization shader state and the
primitiveFragmentShadingRateWithMultipleViewportslimit is not supported,DYNAMIC_STATE_VIEWPORT_WITH_COUNTis not included inpDynamicState\u2192pDynamicStates, andVkPipelineViewportStateCreateInfo::viewportCountis greater than 1, entry points specified inpStagesmust not write to thePrimitiveShadingRateKHRbuilt-in - If the pipeline is being created with pre-rasterization shader state and the
primitiveFragmentShadingRateWithMultipleViewportslimit is not supported, and entry points specified inpStageswrite to theViewportIndexbuilt-in, they must not also write to thePrimitiveShadingRateKHRbuilt-in - If the pipeline is being created with pre-rasterization shader state and the
primitiveFragmentShadingRateWithMultipleViewportslimit is not supported, and entry points specified inpStageswrite to theViewportMaskNVbuilt-in, they must not also write to thePrimitiveShadingRateKHRbuilt-in - If the pipeline is being created with pre-rasterization shader state or fragment shader state, the
fragmentShadingRateNonTrivialCombinerOpslimit is not supported, andDYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHRis not included inpDynamicState\u2192pDynamicStates, elements ofVkPipelineFragmentShadingRateStateCreateInfoKHR::combinerOpsmust beFRAGMENT_SHADING_RATE_COMBINER_OP_KEEP_KHRorFRAGMENT_SHADING_RATE_COMBINER_OP_REPLACE_KHR - If the pipeline is being created with pre-rasterization shader state or fragment shader state, and
DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHRis not included inpDynamicState\u2192pDynamicStates, and thefragmentShadingRateEnumsfeature is not enabled,VkPipelineFragmentShadingRateEnumStateCreateInfoNV::shadingRateTypemust be equal toFRAGMENT_SHADING_RATE_TYPE_FRAGMENT_SIZE_NV - If the pipeline is being created with pre-rasterization shader state or fragment shader state, and
DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHRis not included inpDynamicState\u2192pDynamicStates, and thepipelineFragmentShadingRatefeature is not enabled,VkPipelineFragmentShadingRateEnumStateCreateInfoNV::shadingRatemust be equal toFRAGMENT_SHADING_RATE_1_INVOCATION_PER_PIXEL_NV - If the pipeline is being created with pre-rasterization shader state or fragment shader state, and
DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHRis not included inpDynamicState\u2192pDynamicStates, and theprimitiveFragmentShadingRatefeature is not enabled,VkPipelineFragmentShadingRateEnumStateCreateInfoNV::combinerOps[0] must beFRAGMENT_SHADING_RATE_COMBINER_OP_KEEP_KHR - If the pipeline is being created with pre-rasterization shader state or fragment shader state, and
DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHRis not included inpDynamicState\u2192pDynamicStates, and theattachmentFragmentShadingRatefeature is not enabled,VkPipelineFragmentShadingRateEnumStateCreateInfoNV::combinerOps[1] must beFRAGMENT_SHADING_RATE_COMBINER_OP_KEEP_KHR - If the pipeline is being created with pre-rasterization shader state or fragment shader state, and the
fragmentShadingRateNonTrivialCombinerOpslimit is not supported andDYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHRis not included inpDynamicState\u2192pDynamicStates, elements ofVkPipelineFragmentShadingRateEnumStateCreateInfoNV::combinerOpsmust beFRAGMENT_SHADING_RATE_COMBINER_OP_KEEP_KHRorFRAGMENT_SHADING_RATE_COMBINER_OP_REPLACE_KHR - If the pipeline is being created with pre-rasterization shader state or fragment shader state, and the supersampleFragmentShadingRates feature is not enabled,
VkPipelineFragmentShadingRateEnumStateCreateInfoNV::shadingRatemust not be equal toFRAGMENT_SHADING_RATE_2_INVOCATIONS_PER_PIXEL_NV,FRAGMENT_SHADING_RATE_4_INVOCATIONS_PER_PIXEL_NV,FRAGMENT_SHADING_RATE_8_INVOCATIONS_PER_PIXEL_NV, orFRAGMENT_SHADING_RATE_16_INVOCATIONS_PER_PIXEL_NV - If the pipeline is being created with pre-rasterization shader state or fragment shader state, and the noInvocationFragmentShadingRates feature is not enabled,
VkPipelineFragmentShadingRateEnumStateCreateInfoNV::shadingRatemust not be equal toFRAGMENT_SHADING_RATE_NO_INVOCATIONS_NV - All elements of the
pDynamicStatesmember ofpDynamicStatemust not beDYNAMIC_STATE_RAY_TRACING_PIPELINE_STACK_SIZE_KHR - If the pipeline is being created with pre-rasterization shader state and the vertexInputDynamicState feature is not enabled, there must be no element of the
pDynamicStatesmember ofpDynamicStateset toDYNAMIC_STATE_VERTEX_INPUT_EXT - The pipeline must be created with a complete set of state
- If the colorWriteEnable feature is not enabled, there must be no element of the
pDynamicStatesmember ofpDynamicStateset toDYNAMIC_STATE_COLOR_WRITE_ENABLE_EXT - If the pipeline is being created with fragment shader state, and the
VK_QCOM_render_pass_shader_resolveextension is enabled, and if subpass has any input attachments, and if the subpass description containsSUBPASS_DESCRIPTION_FRAGMENT_REGION_BIT_QCOM, then the sample count of the input attachments must equalrasterizationSamples - If the pipeline is being created with fragment shader state, and the
VK_QCOM_render_pass_shader_resolveextension is enabled, and if the subpass description containsSUBPASS_DESCRIPTION_FRAGMENT_REGION_BIT_QCOM, thensampleShadingEnablemust be false - If
flagsincludesSUBPASS_DESCRIPTION_SHADER_RESOLVE_BIT_QCOM, then the subpass must be the last subpass in a subpass dependency chain - If
flagsincludesSUBPASS_DESCRIPTION_SHADER_RESOLVE_BIT_QCOM, and ifpResolveAttachmentsis notNULL, then each resolve attachment must beATTACHMENT_UNUSED - If the
dynamicRenderingfeature is not enabled,renderPassmust not beNULL_HANDLE - If
renderPassisNULL_HANDLE, the pipeline is being created with fragment shader state, and either ofVkPipelineRenderingCreateInfo::depthAttachmentFormat orVkPipelineRenderingCreateInfo::stencilAttachmentFormat are notFORMAT_UNDEFINED,pDepthStencilStatemust be a valid pointer to a validVkPipelineDepthStencilStateCreateInfostructure - If
renderPassisNULL_HANDLE, the pipeline is being created with fragment output interface state, andVkPipelineRenderingCreateInfo::colorAttachmentCount is not equal to 0,pColorBlendStatemust be a valid pointer to a validVkPipelineColorBlendStateCreateInfostructure - If
renderPassisNULL_HANDLEand the pipeline is being created with fragment output interface state,pColorBlendState\u2192attachmentCountmust be equal toVkPipelineRenderingCreateInfo::colorAttachmentCount - If
renderPassisNULL_HANDLEand the pipeline is being created with fragment shader state the fragment shader must not read from any input attachment - If
renderPassisNULL_HANDLE, the pipeline is being created with pre-rasterization shader state, theviewMaskmember of aVkPipelineRenderingCreateInfostructure included in thepNextchain is not 0, and themultiviewTessellationShaderfeature is not enabled, thenpStagesmust not include tessellation shaders - If
renderPassisNULL_HANDLE, the pipeline is being created with pre-rasterization shader state, theviewMaskmember of aVkPipelineRenderingCreateInfostructure included in thepNextchain is not 0, and themultiviewGeometryShaderfeature is not enabled, thenpStagesmust not include a geometry shader - If
renderPassisNULL_HANDLE, the pipeline is being created with pre-rasterization shader state, and theviewMaskmember of aVkPipelineRenderingCreateInfostructure included in thepNextchain is not 0, shaders inpStagesmust not include variables decorated with theLayerbuilt-in decoration in their interfaces - If the pipeline is being created with fragment output interface state and
renderPassisNULL_HANDLE,pColorBlendState\u2192attachmentCountmust be equal to thecolorAttachmentCountmember of theVkPipelineRenderingCreateInfostructure included in thepNextchain - If the pipeline is being created with fragment shader state and
renderPassisNULL_HANDLE, fragment shaders inpStagesmust not include theInputAttachmentcapability - If the pipeline is being created with fragment output interface state and
renderPassisNULL_HANDLE, for each color attachment format defined by thepColorAttachmentFormatsmember ofVkPipelineRenderingCreateInfo, if its potential format features do not containFORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT, then theblendEnablemember of the corresponding element of thepAttachmentsmember ofpColorBlendStatemust beFALSE - If the pipeline is being created with fragment output interface state and
renderPassisNULL_HANDLE, if thepNextchain includesVkAttachmentSampleCountInfoAMDorVkAttachmentSampleCountInfoNV, thecolorAttachmentCountmember of that structure must be equal to the value ofVkPipelineRenderingCreateInfo::colorAttachmentCount - If
pStagesincludes a fragment shader stage, and the fragment shader code enables early fragment tests, theflagsmember ofVkPipelineDepthStencilStateCreateInfomust not includePIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_DEPTH_ACCESS_BIT_ARMorPIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_STENCIL_ACCESS_BIT_ARM - If the pipeline is being created with fragment output interface state and the
flagsmember ofVkPipelineColorBlendStateCreateInfoincludesPIPELINE_COLOR_BLEND_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_BIT_ARM,renderpassmust not beNULL_HANDLE - If the pipeline is being created with fragment output interface state and the
flagsmember ofVkPipelineDepthStencilStateCreateInfoincludesPIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_DEPTH_ACCESS_BIT_ARMorPIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_STENCIL_ACCESS_BIT_ARM,renderpassmust not beNULL_HANDLE - If the pipeline is being created with fragment output interface state and the
flagsmember ofVkPipelineColorBlendStateCreateInfoincludesPIPELINE_COLOR_BLEND_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_BIT_ARMsubpassmust have been created withSUBPASS_DESCRIPTION_RASTERIZATION_ORDER_ATTACHMENT_COLOR_ACCESS_BIT_ARM - If the pipeline is being created with fragment output interface state and the
flagsmember ofVkPipelineDepthStencilStateCreateInfoincludesPIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_DEPTH_ACCESS_BIT_ARM,subpassmust have been created withSUBPASS_DESCRIPTION_RASTERIZATION_ORDER_ATTACHMENT_DEPTH_ACCESS_BIT_ARM - If the pipeline is being created with fragment output interface state and the
flagsmember ofVkPipelineDepthStencilStateCreateInfoincludesPIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_STENCIL_ACCESS_BIT_ARM,subpassmust have been created withSUBPASS_DESCRIPTION_RASTERIZATION_ORDER_ATTACHMENT_STENCIL_ACCESS_BIT_ARM
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkAttachmentSampleCountInfoAMD,VkGraphicsPipelineShaderGroupsCreateInfoNV,VkMultiviewPerViewAttributesInfoNVX,VkPipelineCompilerControlCreateInfoAMD,VkPipelineCreationFeedbackCreateInfo,VkPipelineDiscardRectangleStateCreateInfoEXT,VkPipelineFragmentShadingRateEnumStateCreateInfoNV,VkPipelineFragmentShadingRateStateCreateInfoKHR,VkPipelineRenderingCreateInfo, orVkPipelineRepresentativeFragmentTestStateCreateInfoNV - The
sTypevalue of each struct in thepNextchain must be unique flagsmust be a valid combination ofVkPipelineCreateFlagBitsvaluespStagesmust be a valid pointer to an array ofstageCountvalidVkPipelineShaderStageCreateInfostructurespRasterizationStatemust be a valid pointer to a validVkPipelineRasterizationStateCreateInfostructure- If
pDynamicStateis notNULL,pDynamicStatemust be a valid pointer to a validVkPipelineDynamicStateCreateInfostructure layoutmust be a validVkPipelineLayouthandle- If
renderPassis notNULL_HANDLE,renderPassmust be a validVkRenderPasshandle stageCountmust be greater than 0- Each of
basePipelineHandle,layout, andrenderPassthat are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the sameVkDevice
See Also
VkPipelineColorBlendStateCreateInfo,VkPipelineDepthStencilStateCreateInfo,VkPipelineDynamicStateCreateInfo,VkPipelineInputAssemblyStateCreateInfo,VkPipelineMultisampleStateCreateInfo,VkPipelineRasterizationStateCreateInfo,VkPipelineShaderStageCreateInfo,VkPipelineTessellationStateCreateInfo,VkPipelineVertexInputStateCreateInfo,VkPipelineViewportStateCreateInfo,CreateGraphicsPipelinesLayout
struct VkGraphicsPipelineCreateInfo { VkStructureTypesType(); void const *pNext(); VkPipelineCreateFlagsflags(); uint32_tstageCount();VkPipelineShaderStageCreateInfoconst *pStages();VkPipelineVertexInputStateCreateInfoconst *pVertexInputState();VkPipelineInputAssemblyStateCreateInfoconst *pInputAssemblyState();VkPipelineTessellationStateCreateInfoconst *pTessellationState();VkPipelineViewportStateCreateInfoconst *pViewportState();VkPipelineRasterizationStateCreateInfoconst *pRasterizationState();VkPipelineMultisampleStateCreateInfoconst *pMultisampleState();VkPipelineDepthStencilStateCreateInfoconst *pDepthStencilState();VkPipelineColorBlendStateCreateInfoconst *pColorBlendState();VkPipelineDynamicStateCreateInfoconst *pDynamicState(); VkPipelineLayoutlayout(); VkRenderPassrenderPass(); uint32_tsubpass(); VkPipelinebasePipelineHandle(); int32_tbasePipelineIndex(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkGraphicsPipelineCreateInfo.BufferAn array ofVkGraphicsPipelineCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBASEPIPELINEHANDLE
BASEPIPELINEINDEX
FLAGS
LAYOUT
PCOLORBLENDSTATE
PDEPTHSTENCILSTATE
PDYNAMICSTATE
PINPUTASSEMBLYSTATE
PMULTISAMPLESTATE
PNEXT
PRASTERIZATIONSTATE
PSTAGES
PTESSELLATIONSTATE
PVERTEXINPUTSTATE
PVIEWPORTSTATE
RENDERPASSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTAGECOUNT
STYPE
SUBPASSThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkGraphicsPipelineCreateInfo(java.nio.ByteBuffer container)Creates aVkGraphicsPipelineCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longbasePipelineHandle()a pipeline to derive from.VkGraphicsPipelineCreateInfobasePipelineHandle(long value)Sets the specified value to thebasePipelineHandle()field.intbasePipelineIndex()an index into thepCreateInfosparameter to use as a pipeline to derive from.VkGraphicsPipelineCreateInfobasePipelineIndex(int value)Sets the specified value to thebasePipelineIndex()field.static VkGraphicsPipelineCreateInfocalloc()Returns a newVkGraphicsPipelineCreateInfoinstance allocated withmemCalloc.static VkGraphicsPipelineCreateInfo.Buffercalloc(int capacity)Returns a newVkGraphicsPipelineCreateInfo.Bufferinstance allocated withmemCalloc.static VkGraphicsPipelineCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkGraphicsPipelineCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGraphicsPipelineCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkGraphicsPipelineCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGraphicsPipelineCreateInfocallocStack()Deprecated.static VkGraphicsPipelineCreateInfo.BuffercallocStack(int capacity)Deprecated.static VkGraphicsPipelineCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkGraphicsPipelineCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkGraphicsPipelineCreateInfocreate()Returns a newVkGraphicsPipelineCreateInfoinstance allocated withBufferUtils.static VkGraphicsPipelineCreateInfo.Buffercreate(int capacity)Returns a newVkGraphicsPipelineCreateInfo.Bufferinstance allocated withBufferUtils.static VkGraphicsPipelineCreateInfocreate(long address)Returns a newVkGraphicsPipelineCreateInfoinstance for the specified memory address.static VkGraphicsPipelineCreateInfo.Buffercreate(long address, int capacity)Create aVkGraphicsPipelineCreateInfo.Bufferinstance at the specified memory.static VkGraphicsPipelineCreateInfocreateSafe(long address)static VkGraphicsPipelineCreateInfo.BuffercreateSafe(long address, int capacity)intflags()a bitmask ofVkPipelineCreateFlagBitsspecifying how the pipeline will be generated.VkGraphicsPipelineCreateInfoflags(int value)Sets the specified value to theflags()field.longlayout()the description of binding locations used by both the pipeline and descriptor sets used with the pipeline.VkGraphicsPipelineCreateInfolayout(long value)Sets the specified value to thelayout()field.static VkGraphicsPipelineCreateInfomalloc()Returns a newVkGraphicsPipelineCreateInfoinstance allocated withmemAlloc.static VkGraphicsPipelineCreateInfo.Buffermalloc(int capacity)Returns a newVkGraphicsPipelineCreateInfo.Bufferinstance allocated withmemAlloc.static VkGraphicsPipelineCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkGraphicsPipelineCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkGraphicsPipelineCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkGraphicsPipelineCreateInfoinstance allocated on the specifiedMemoryStack.static VkGraphicsPipelineCreateInfomallocStack()Deprecated.static VkGraphicsPipelineCreateInfo.BuffermallocStack(int capacity)Deprecated.static VkGraphicsPipelineCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkGraphicsPipelineCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static longnbasePipelineHandle(long struct)Unsafe version ofbasePipelineHandle().static voidnbasePipelineHandle(long struct, long value)Unsafe version ofbasePipelineHandle.static intnbasePipelineIndex(long struct)Unsafe version ofbasePipelineIndex().static voidnbasePipelineIndex(long struct, int value)Unsafe version ofbasePipelineIndex.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static longnlayout(long struct)Unsafe version oflayout().static voidnlayout(long struct, long value)Unsafe version oflayout.static VkPipelineColorBlendStateCreateInfonpColorBlendState(long struct)Unsafe version ofpColorBlendState().static voidnpColorBlendState(long struct, VkPipelineColorBlendStateCreateInfo value)Unsafe version ofpColorBlendState.static VkPipelineDepthStencilStateCreateInfonpDepthStencilState(long struct)Unsafe version ofpDepthStencilState().static voidnpDepthStencilState(long struct, VkPipelineDepthStencilStateCreateInfo value)Unsafe version ofpDepthStencilState.static VkPipelineDynamicStateCreateInfonpDynamicState(long struct)Unsafe version ofpDynamicState().static voidnpDynamicState(long struct, VkPipelineDynamicStateCreateInfo value)Unsafe version ofpDynamicState.static VkPipelineInputAssemblyStateCreateInfonpInputAssemblyState(long struct)Unsafe version ofpInputAssemblyState().static voidnpInputAssemblyState(long struct, VkPipelineInputAssemblyStateCreateInfo value)Unsafe version ofpInputAssemblyState.static VkPipelineMultisampleStateCreateInfonpMultisampleState(long struct)Unsafe version ofpMultisampleState().static voidnpMultisampleState(long struct, VkPipelineMultisampleStateCreateInfo value)Unsafe version ofpMultisampleState.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static VkPipelineRasterizationStateCreateInfonpRasterizationState(long struct)Unsafe version ofpRasterizationState().static voidnpRasterizationState(long struct, VkPipelineRasterizationStateCreateInfo value)Unsafe version ofpRasterizationState.static VkPipelineShaderStageCreateInfo.BuffernpStages(long struct)Unsafe version ofpStages().static voidnpStages(long struct, VkPipelineShaderStageCreateInfo.Buffer value)Unsafe version ofpStages.static VkPipelineTessellationStateCreateInfonpTessellationState(long struct)Unsafe version ofpTessellationState().static voidnpTessellationState(long struct, VkPipelineTessellationStateCreateInfo value)Unsafe version ofpTessellationState.static VkPipelineVertexInputStateCreateInfonpVertexInputState(long struct)Unsafe version ofpVertexInputState().static voidnpVertexInputState(long struct, VkPipelineVertexInputStateCreateInfo value)Unsafe version ofpVertexInputState.static VkPipelineViewportStateCreateInfonpViewportState(long struct)Unsafe version ofpViewportState().static voidnpViewportState(long struct, VkPipelineViewportStateCreateInfo value)Unsafe version ofpViewportState.static longnrenderPass(long struct)Unsafe version ofrenderPass().static voidnrenderPass(long struct, long value)Unsafe version ofrenderPass.static intnstageCount(long struct)Unsafe version ofstageCount().static voidnstageCount(long struct, int value)Sets the specified value to thestageCountfield of the specifiedstruct.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnsubpass(long struct)Unsafe version ofsubpass().static voidnsubpass(long struct, int value)Unsafe version ofsubpass.VkPipelineColorBlendStateCreateInfopColorBlendState()a pointer to aVkPipelineColorBlendStateCreateInfostructure, and is ignored if the pipeline has rasterization disabled or if no color attachments are used.VkGraphicsPipelineCreateInfopColorBlendState(VkPipelineColorBlendStateCreateInfo value)Sets the address of the specifiedVkPipelineColorBlendStateCreateInfoto thepColorBlendState()field.VkPipelineDepthStencilStateCreateInfopDepthStencilState()a pointer to aVkPipelineDepthStencilStateCreateInfostructure, and is ignored if the pipeline has rasterization disabled or if no depth/stencil attachment is used.VkGraphicsPipelineCreateInfopDepthStencilState(VkPipelineDepthStencilStateCreateInfo value)Sets the address of the specifiedVkPipelineDepthStencilStateCreateInfoto thepDepthStencilState()field.VkPipelineDynamicStateCreateInfopDynamicState()a pointer to aVkPipelineDynamicStateCreateInfostructure, and is used to indicate which properties of the pipeline state object are dynamic and can be changed independently of the pipeline state.VkGraphicsPipelineCreateInfopDynamicState(VkPipelineDynamicStateCreateInfo value)Sets the address of the specifiedVkPipelineDynamicStateCreateInfoto thepDynamicState()field.VkPipelineInputAssemblyStateCreateInfopInputAssemblyState()a pointer to aVkPipelineInputAssemblyStateCreateInfostructure which determines input assembly behavior, as described in Drawing Commands.VkGraphicsPipelineCreateInfopInputAssemblyState(VkPipelineInputAssemblyStateCreateInfo value)Sets the address of the specifiedVkPipelineInputAssemblyStateCreateInfoto thepInputAssemblyState()field.VkPipelineMultisampleStateCreateInfopMultisampleState()a pointer to aVkPipelineMultisampleStateCreateInfostructure, and is ignored if the pipeline has rasterization disabled.VkGraphicsPipelineCreateInfopMultisampleState(VkPipelineMultisampleStateCreateInfo value)Sets the address of the specifiedVkPipelineMultisampleStateCreateInfoto thepMultisampleState()field.longpNext()NULLor a pointer to a structure extending this structure.VkGraphicsPipelineCreateInfopNext(long value)Sets the specified value to thepNext()field.VkGraphicsPipelineCreateInfopNext(VkAttachmentSampleCountInfoAMD value)Prepends the specifiedVkAttachmentSampleCountInfoAMDvalue to thepNextchain.VkGraphicsPipelineCreateInfopNext(VkAttachmentSampleCountInfoNV value)Prepends the specifiedVkAttachmentSampleCountInfoNVvalue to thepNextchain.VkGraphicsPipelineCreateInfopNext(VkGraphicsPipelineShaderGroupsCreateInfoNV value)Prepends the specifiedVkGraphicsPipelineShaderGroupsCreateInfoNVvalue to thepNextchain.VkGraphicsPipelineCreateInfopNext(VkMultiviewPerViewAttributesInfoNVX value)Prepends the specifiedVkMultiviewPerViewAttributesInfoNVXvalue to thepNextchain.VkGraphicsPipelineCreateInfopNext(VkPipelineCompilerControlCreateInfoAMD value)Prepends the specifiedVkPipelineCompilerControlCreateInfoAMDvalue to thepNextchain.VkGraphicsPipelineCreateInfopNext(VkPipelineCreationFeedbackCreateInfo value)Prepends the specifiedVkPipelineCreationFeedbackCreateInfovalue to thepNextchain.VkGraphicsPipelineCreateInfopNext(VkPipelineCreationFeedbackCreateInfoEXT value)Prepends the specifiedVkPipelineCreationFeedbackCreateInfoEXTvalue to thepNextchain.VkGraphicsPipelineCreateInfopNext(VkPipelineDiscardRectangleStateCreateInfoEXT value)Prepends the specifiedVkPipelineDiscardRectangleStateCreateInfoEXTvalue to thepNextchain.VkGraphicsPipelineCreateInfopNext(VkPipelineFragmentShadingRateEnumStateCreateInfoNV value)Prepends the specifiedVkPipelineFragmentShadingRateEnumStateCreateInfoNVvalue to thepNextchain.VkGraphicsPipelineCreateInfopNext(VkPipelineFragmentShadingRateStateCreateInfoKHR value)Prepends the specifiedVkPipelineFragmentShadingRateStateCreateInfoKHRvalue to thepNextchain.VkGraphicsPipelineCreateInfopNext(VkPipelineRenderingCreateInfo value)Prepends the specifiedVkPipelineRenderingCreateInfovalue to thepNextchain.VkGraphicsPipelineCreateInfopNext(VkPipelineRenderingCreateInfoKHR value)Prepends the specifiedVkPipelineRenderingCreateInfoKHRvalue to thepNextchain.VkGraphicsPipelineCreateInfopNext(VkPipelineRepresentativeFragmentTestStateCreateInfoNV value)Prepends the specifiedVkPipelineRepresentativeFragmentTestStateCreateInfoNVvalue to thepNextchain.VkPipelineRasterizationStateCreateInfopRasterizationState()a pointer to aVkPipelineRasterizationStateCreateInfostructure.VkGraphicsPipelineCreateInfopRasterizationState(VkPipelineRasterizationStateCreateInfo value)Sets the address of the specifiedVkPipelineRasterizationStateCreateInfoto thepRasterizationState()field.VkPipelineShaderStageCreateInfo.BufferpStages()a pointer to an array ofstageCountVkPipelineShaderStageCreateInfostructures describing the set of the shader stages to be included in the graphics pipeline.VkGraphicsPipelineCreateInfopStages(VkPipelineShaderStageCreateInfo.Buffer value)Sets the address of the specifiedVkPipelineShaderStageCreateInfo.Bufferto thepStages()field.VkPipelineTessellationStateCreateInfopTessellationState()a pointer to aVkPipelineTessellationStateCreateInfostructure, and is ignored if the pipeline does not include a tessellation control shader stage and tessellation evaluation shader stage.VkGraphicsPipelineCreateInfopTessellationState(VkPipelineTessellationStateCreateInfo value)Sets the address of the specifiedVkPipelineTessellationStateCreateInfoto thepTessellationState()field.VkPipelineVertexInputStateCreateInfopVertexInputState()a pointer to aVkPipelineVertexInputStateCreateInfostructure.VkGraphicsPipelineCreateInfopVertexInputState(VkPipelineVertexInputStateCreateInfo value)Sets the address of the specifiedVkPipelineVertexInputStateCreateInfoto thepVertexInputState()field.VkPipelineViewportStateCreateInfopViewportState()a pointer to aVkPipelineViewportStateCreateInfostructure, and is ignored if the pipeline has rasterization disabled.VkGraphicsPipelineCreateInfopViewportState(VkPipelineViewportStateCreateInfo value)Sets the address of the specifiedVkPipelineViewportStateCreateInfoto thepViewportState()field.longrenderPass()a handle to a render pass object describing the environment in which the pipeline will be used.VkGraphicsPipelineCreateInforenderPass(long value)Sets the specified value to therenderPass()field.VkGraphicsPipelineCreateInfoset(int sType, long pNext, int flags, VkPipelineShaderStageCreateInfo.Buffer pStages, VkPipelineVertexInputStateCreateInfo pVertexInputState, VkPipelineInputAssemblyStateCreateInfo pInputAssemblyState, VkPipelineTessellationStateCreateInfo pTessellationState, VkPipelineViewportStateCreateInfo pViewportState, VkPipelineRasterizationStateCreateInfo pRasterizationState, VkPipelineMultisampleStateCreateInfo pMultisampleState, VkPipelineDepthStencilStateCreateInfo pDepthStencilState, VkPipelineColorBlendStateCreateInfo pColorBlendState, VkPipelineDynamicStateCreateInfo pDynamicState, long layout, long renderPass, int subpass, long basePipelineHandle, int basePipelineIndex)Initializes this struct with the specified values.VkGraphicsPipelineCreateInfoset(VkGraphicsPipelineCreateInfo src)Copies the specified struct data to this struct.intsizeof()intstageCount()the number of entries in thepStagesarray.intsType()the type of this structure.VkGraphicsPipelineCreateInfosType(int value)Sets the specified value to thesType()field.VkGraphicsPipelineCreateInfosType$Default()Sets theSTRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFOvalue to thesType()field.intsubpass()the index of the subpass in the render pass where this pipeline will be used.VkGraphicsPipelineCreateInfosubpass(int value)Sets the specified value to thesubpass()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
STYPE, PNEXT, FLAGS, STAGECOUNT, PSTAGES, PVERTEXINPUTSTATE, PINPUTASSEMBLYSTATE, PTESSELLATIONSTATE, PVIEWPORTSTATE, PRASTERIZATIONSTATE, PMULTISAMPLESTATE, PDEPTHSTENCILSTATE, PCOLORBLENDSTATE, PDYNAMICSTATE, LAYOUT, RENDERPASS, SUBPASS, BASEPIPELINEHANDLE, BASEPIPELINEINDEX
The struct member offsets.
-
-
Constructor Detail
-
VkGraphicsPipelineCreateInfo
public VkGraphicsPipelineCreateInfo(java.nio.ByteBuffer container)
Creates aVkGraphicsPipelineCreateInfoinstance 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.
-
flags
public int flags()
a bitmask ofVkPipelineCreateFlagBitsspecifying how the pipeline will be generated.
-
stageCount
public int stageCount()
the number of entries in thepStagesarray.
-
pStages
public VkPipelineShaderStageCreateInfo.Buffer pStages()
a pointer to an array ofstageCountVkPipelineShaderStageCreateInfostructures describing the set of the shader stages to be included in the graphics pipeline.
-
pVertexInputState
@Nullable public VkPipelineVertexInputStateCreateInfo pVertexInputState()
a pointer to aVkPipelineVertexInputStateCreateInfostructure. It is ignored if the pipeline includes a mesh shader stage. It is ignored if the pipeline is created with theDYNAMIC_STATE_VERTEX_INPUT_EXTdynamic state set.
-
pInputAssemblyState
@Nullable public VkPipelineInputAssemblyStateCreateInfo pInputAssemblyState()
a pointer to aVkPipelineInputAssemblyStateCreateInfostructure which determines input assembly behavior, as described in Drawing Commands. It is ignored if the pipeline includes a mesh shader stage.
-
pTessellationState
@Nullable public VkPipelineTessellationStateCreateInfo pTessellationState()
a pointer to aVkPipelineTessellationStateCreateInfostructure, and is ignored if the pipeline does not include a tessellation control shader stage and tessellation evaluation shader stage.
-
pViewportState
@Nullable public VkPipelineViewportStateCreateInfo pViewportState()
a pointer to aVkPipelineViewportStateCreateInfostructure, and is ignored if the pipeline has rasterization disabled.
-
pRasterizationState
public VkPipelineRasterizationStateCreateInfo pRasterizationState()
a pointer to aVkPipelineRasterizationStateCreateInfostructure.
-
pMultisampleState
@Nullable public VkPipelineMultisampleStateCreateInfo pMultisampleState()
a pointer to aVkPipelineMultisampleStateCreateInfostructure, and is ignored if the pipeline has rasterization disabled.
-
pDepthStencilState
@Nullable public VkPipelineDepthStencilStateCreateInfo pDepthStencilState()
a pointer to aVkPipelineDepthStencilStateCreateInfostructure, and is ignored if the pipeline has rasterization disabled or if no depth/stencil attachment is used.
-
pColorBlendState
@Nullable public VkPipelineColorBlendStateCreateInfo pColorBlendState()
a pointer to aVkPipelineColorBlendStateCreateInfostructure, and is ignored if the pipeline has rasterization disabled or if no color attachments are used.
-
pDynamicState
@Nullable public VkPipelineDynamicStateCreateInfo pDynamicState()
a pointer to aVkPipelineDynamicStateCreateInfostructure, and is used to indicate which properties of the pipeline state object are dynamic and can be changed independently of the pipeline state. This can beNULL, which means no state in the pipeline is considered dynamic.
-
layout
public long layout()
the description of binding locations used by both the pipeline and descriptor sets used with the pipeline.
-
renderPass
public long renderPass()
a handle to a render pass object describing the environment in which the pipeline will be used. The pipeline must only be used with a render pass instance compatible with the one provided. See Render Pass Compatibility for more information.
-
subpass
public int subpass()
the index of the subpass in the render pass where this pipeline will be used.
-
basePipelineHandle
public long basePipelineHandle()
a pipeline to derive from.
-
basePipelineIndex
public int basePipelineIndex()
an index into thepCreateInfosparameter to use as a pipeline to derive from.
-
sType
public VkGraphicsPipelineCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkGraphicsPipelineCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFOvalue to thesType()field.
-
pNext
public VkGraphicsPipelineCreateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkGraphicsPipelineCreateInfo pNext(VkAttachmentSampleCountInfoAMD value)
Prepends the specifiedVkAttachmentSampleCountInfoAMDvalue to thepNextchain.
-
pNext
public VkGraphicsPipelineCreateInfo pNext(VkAttachmentSampleCountInfoNV value)
Prepends the specifiedVkAttachmentSampleCountInfoNVvalue to thepNextchain.
-
pNext
public VkGraphicsPipelineCreateInfo pNext(VkGraphicsPipelineShaderGroupsCreateInfoNV value)
Prepends the specifiedVkGraphicsPipelineShaderGroupsCreateInfoNVvalue to thepNextchain.
-
pNext
public VkGraphicsPipelineCreateInfo pNext(VkMultiviewPerViewAttributesInfoNVX value)
Prepends the specifiedVkMultiviewPerViewAttributesInfoNVXvalue to thepNextchain.
-
pNext
public VkGraphicsPipelineCreateInfo pNext(VkPipelineCompilerControlCreateInfoAMD value)
Prepends the specifiedVkPipelineCompilerControlCreateInfoAMDvalue to thepNextchain.
-
pNext
public VkGraphicsPipelineCreateInfo pNext(VkPipelineCreationFeedbackCreateInfo value)
Prepends the specifiedVkPipelineCreationFeedbackCreateInfovalue to thepNextchain.
-
pNext
public VkGraphicsPipelineCreateInfo pNext(VkPipelineCreationFeedbackCreateInfoEXT value)
Prepends the specifiedVkPipelineCreationFeedbackCreateInfoEXTvalue to thepNextchain.
-
pNext
public VkGraphicsPipelineCreateInfo pNext(VkPipelineDiscardRectangleStateCreateInfoEXT value)
Prepends the specifiedVkPipelineDiscardRectangleStateCreateInfoEXTvalue to thepNextchain.
-
pNext
public VkGraphicsPipelineCreateInfo pNext(VkPipelineFragmentShadingRateEnumStateCreateInfoNV value)
Prepends the specifiedVkPipelineFragmentShadingRateEnumStateCreateInfoNVvalue to thepNextchain.
-
pNext
public VkGraphicsPipelineCreateInfo pNext(VkPipelineFragmentShadingRateStateCreateInfoKHR value)
Prepends the specifiedVkPipelineFragmentShadingRateStateCreateInfoKHRvalue to thepNextchain.
-
pNext
public VkGraphicsPipelineCreateInfo pNext(VkPipelineRenderingCreateInfo value)
Prepends the specifiedVkPipelineRenderingCreateInfovalue to thepNextchain.
-
pNext
public VkGraphicsPipelineCreateInfo pNext(VkPipelineRenderingCreateInfoKHR value)
Prepends the specifiedVkPipelineRenderingCreateInfoKHRvalue to thepNextchain.
-
pNext
public VkGraphicsPipelineCreateInfo pNext(VkPipelineRepresentativeFragmentTestStateCreateInfoNV value)
Prepends the specifiedVkPipelineRepresentativeFragmentTestStateCreateInfoNVvalue to thepNextchain.
-
flags
public VkGraphicsPipelineCreateInfo flags(int value)
Sets the specified value to theflags()field.
-
pStages
public VkGraphicsPipelineCreateInfo pStages(VkPipelineShaderStageCreateInfo.Buffer value)
Sets the address of the specifiedVkPipelineShaderStageCreateInfo.Bufferto thepStages()field.
-
pVertexInputState
public VkGraphicsPipelineCreateInfo pVertexInputState(@Nullable VkPipelineVertexInputStateCreateInfo value)
Sets the address of the specifiedVkPipelineVertexInputStateCreateInfoto thepVertexInputState()field.
-
pInputAssemblyState
public VkGraphicsPipelineCreateInfo pInputAssemblyState(@Nullable VkPipelineInputAssemblyStateCreateInfo value)
Sets the address of the specifiedVkPipelineInputAssemblyStateCreateInfoto thepInputAssemblyState()field.
-
pTessellationState
public VkGraphicsPipelineCreateInfo pTessellationState(@Nullable VkPipelineTessellationStateCreateInfo value)
Sets the address of the specifiedVkPipelineTessellationStateCreateInfoto thepTessellationState()field.
-
pViewportState
public VkGraphicsPipelineCreateInfo pViewportState(@Nullable VkPipelineViewportStateCreateInfo value)
Sets the address of the specifiedVkPipelineViewportStateCreateInfoto thepViewportState()field.
-
pRasterizationState
public VkGraphicsPipelineCreateInfo pRasterizationState(VkPipelineRasterizationStateCreateInfo value)
Sets the address of the specifiedVkPipelineRasterizationStateCreateInfoto thepRasterizationState()field.
-
pMultisampleState
public VkGraphicsPipelineCreateInfo pMultisampleState(@Nullable VkPipelineMultisampleStateCreateInfo value)
Sets the address of the specifiedVkPipelineMultisampleStateCreateInfoto thepMultisampleState()field.
-
pDepthStencilState
public VkGraphicsPipelineCreateInfo pDepthStencilState(@Nullable VkPipelineDepthStencilStateCreateInfo value)
Sets the address of the specifiedVkPipelineDepthStencilStateCreateInfoto thepDepthStencilState()field.
-
pColorBlendState
public VkGraphicsPipelineCreateInfo pColorBlendState(@Nullable VkPipelineColorBlendStateCreateInfo value)
Sets the address of the specifiedVkPipelineColorBlendStateCreateInfoto thepColorBlendState()field.
-
pDynamicState
public VkGraphicsPipelineCreateInfo pDynamicState(@Nullable VkPipelineDynamicStateCreateInfo value)
Sets the address of the specifiedVkPipelineDynamicStateCreateInfoto thepDynamicState()field.
-
layout
public VkGraphicsPipelineCreateInfo layout(long value)
Sets the specified value to thelayout()field.
-
renderPass
public VkGraphicsPipelineCreateInfo renderPass(long value)
Sets the specified value to therenderPass()field.
-
subpass
public VkGraphicsPipelineCreateInfo subpass(int value)
Sets the specified value to thesubpass()field.
-
basePipelineHandle
public VkGraphicsPipelineCreateInfo basePipelineHandle(long value)
Sets the specified value to thebasePipelineHandle()field.
-
basePipelineIndex
public VkGraphicsPipelineCreateInfo basePipelineIndex(int value)
Sets the specified value to thebasePipelineIndex()field.
-
set
public VkGraphicsPipelineCreateInfo set(int sType, long pNext, int flags, VkPipelineShaderStageCreateInfo.Buffer pStages, @Nullable VkPipelineVertexInputStateCreateInfo pVertexInputState, @Nullable VkPipelineInputAssemblyStateCreateInfo pInputAssemblyState, @Nullable VkPipelineTessellationStateCreateInfo pTessellationState, @Nullable VkPipelineViewportStateCreateInfo pViewportState, VkPipelineRasterizationStateCreateInfo pRasterizationState, @Nullable VkPipelineMultisampleStateCreateInfo pMultisampleState, @Nullable VkPipelineDepthStencilStateCreateInfo pDepthStencilState, @Nullable VkPipelineColorBlendStateCreateInfo pColorBlendState, @Nullable VkPipelineDynamicStateCreateInfo pDynamicState, long layout, long renderPass, int subpass, long basePipelineHandle, int basePipelineIndex)
Initializes this struct with the specified values.
-
set
public VkGraphicsPipelineCreateInfo set(VkGraphicsPipelineCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkGraphicsPipelineCreateInfo malloc()
Returns a newVkGraphicsPipelineCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkGraphicsPipelineCreateInfo calloc()
Returns a newVkGraphicsPipelineCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkGraphicsPipelineCreateInfo create()
Returns a newVkGraphicsPipelineCreateInfoinstance allocated withBufferUtils.
-
create
public static VkGraphicsPipelineCreateInfo create(long address)
Returns a newVkGraphicsPipelineCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkGraphicsPipelineCreateInfo createSafe(long address)
-
malloc
public static VkGraphicsPipelineCreateInfo.Buffer malloc(int capacity)
Returns a newVkGraphicsPipelineCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkGraphicsPipelineCreateInfo.Buffer calloc(int capacity)
Returns a newVkGraphicsPipelineCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkGraphicsPipelineCreateInfo.Buffer create(int capacity)
Returns a newVkGraphicsPipelineCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkGraphicsPipelineCreateInfo.Buffer create(long address, int capacity)
Create aVkGraphicsPipelineCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkGraphicsPipelineCreateInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkGraphicsPipelineCreateInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkGraphicsPipelineCreateInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkGraphicsPipelineCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkGraphicsPipelineCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkGraphicsPipelineCreateInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkGraphicsPipelineCreateInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkGraphicsPipelineCreateInfo.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 VkGraphicsPipelineCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkGraphicsPipelineCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkGraphicsPipelineCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkGraphicsPipelineCreateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkGraphicsPipelineCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkGraphicsPipelineCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkGraphicsPipelineCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkGraphicsPipelineCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkGraphicsPipelineCreateInfo.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().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nstageCount
public static int nstageCount(long struct)
Unsafe version ofstageCount().
-
npStages
public static VkPipelineShaderStageCreateInfo.Buffer npStages(long struct)
Unsafe version ofpStages().
-
npVertexInputState
@Nullable public static VkPipelineVertexInputStateCreateInfo npVertexInputState(long struct)
Unsafe version ofpVertexInputState().
-
npInputAssemblyState
@Nullable public static VkPipelineInputAssemblyStateCreateInfo npInputAssemblyState(long struct)
Unsafe version ofpInputAssemblyState().
-
npTessellationState
@Nullable public static VkPipelineTessellationStateCreateInfo npTessellationState(long struct)
Unsafe version ofpTessellationState().
-
npViewportState
@Nullable public static VkPipelineViewportStateCreateInfo npViewportState(long struct)
Unsafe version ofpViewportState().
-
npRasterizationState
public static VkPipelineRasterizationStateCreateInfo npRasterizationState(long struct)
Unsafe version ofpRasterizationState().
-
npMultisampleState
@Nullable public static VkPipelineMultisampleStateCreateInfo npMultisampleState(long struct)
Unsafe version ofpMultisampleState().
-
npDepthStencilState
@Nullable public static VkPipelineDepthStencilStateCreateInfo npDepthStencilState(long struct)
Unsafe version ofpDepthStencilState().
-
npColorBlendState
@Nullable public static VkPipelineColorBlendStateCreateInfo npColorBlendState(long struct)
Unsafe version ofpColorBlendState().
-
npDynamicState
@Nullable public static VkPipelineDynamicStateCreateInfo npDynamicState(long struct)
Unsafe version ofpDynamicState().
-
nlayout
public static long nlayout(long struct)
Unsafe version oflayout().
-
nrenderPass
public static long nrenderPass(long struct)
Unsafe version ofrenderPass().
-
nsubpass
public static int nsubpass(long struct)
Unsafe version ofsubpass().
-
nbasePipelineHandle
public static long nbasePipelineHandle(long struct)
Unsafe version ofbasePipelineHandle().
-
nbasePipelineIndex
public static int nbasePipelineIndex(long struct)
Unsafe version ofbasePipelineIndex().
-
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.
-
nstageCount
public static void nstageCount(long struct, int value)Sets the specified value to thestageCountfield of the specifiedstruct.
-
npStages
public static void npStages(long struct, VkPipelineShaderStageCreateInfo.Buffer value)Unsafe version ofpStages.
-
npVertexInputState
public static void npVertexInputState(long struct, @Nullable VkPipelineVertexInputStateCreateInfo value)Unsafe version ofpVertexInputState.
-
npInputAssemblyState
public static void npInputAssemblyState(long struct, @Nullable VkPipelineInputAssemblyStateCreateInfo value)Unsafe version ofpInputAssemblyState.
-
npTessellationState
public static void npTessellationState(long struct, @Nullable VkPipelineTessellationStateCreateInfo value)Unsafe version ofpTessellationState.
-
npViewportState
public static void npViewportState(long struct, @Nullable VkPipelineViewportStateCreateInfo value)Unsafe version ofpViewportState.
-
npRasterizationState
public static void npRasterizationState(long struct, VkPipelineRasterizationStateCreateInfo value)Unsafe version ofpRasterizationState.
-
npMultisampleState
public static void npMultisampleState(long struct, @Nullable VkPipelineMultisampleStateCreateInfo value)Unsafe version ofpMultisampleState.
-
npDepthStencilState
public static void npDepthStencilState(long struct, @Nullable VkPipelineDepthStencilStateCreateInfo value)Unsafe version ofpDepthStencilState.
-
npColorBlendState
public static void npColorBlendState(long struct, @Nullable VkPipelineColorBlendStateCreateInfo value)Unsafe version ofpColorBlendState.
-
npDynamicState
public static void npDynamicState(long struct, @Nullable VkPipelineDynamicStateCreateInfo value)Unsafe version ofpDynamicState.
-
nlayout
public static void nlayout(long struct, long value)Unsafe version oflayout.
-
nrenderPass
public static void nrenderPass(long struct, long value)Unsafe version ofrenderPass.
-
nsubpass
public static void nsubpass(long struct, int value)Unsafe version ofsubpass.
-
nbasePipelineHandle
public static void nbasePipelineHandle(long struct, long value)Unsafe version ofbasePipelineHandle.
-
nbasePipelineIndex
public static void nbasePipelineIndex(long struct, int value)Unsafe version ofbasePipelineIndex.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-