public class VkGraphicsPipelineCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The parameters basePipelineHandle and basePipelineIndex are 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_NV will be generated.
flags contains the PIPELINE_CREATE_DERIVATIVE_BIT flag, and basePipelineIndex is -1, basePipelineHandle must be a valid handle to a graphics VkPipelineflags contains the PIPELINE_CREATE_DERIVATIVE_BIT flag, and basePipelineHandle is NULL_HANDLE, basePipelineIndex must be a valid index into the calling command’s pCreateInfos parameterflags contains the PIPELINE_CREATE_DERIVATIVE_BIT flag, and basePipelineIndex is not -1, basePipelineHandle must be NULL_HANDLEflags contains the PIPELINE_CREATE_DERIVATIVE_BIT flag, and basePipelineHandle is not NULL_HANDLE, basePipelineIndex must be -1stage member of each element of pStages must be uniquepStages must be either from the mesh shading pipeline (stage is SHADER_STAGE_TASK_BIT_NV or SHADER_STAGE_MESH_BIT_NV) or from the primitive shading pipeline (stage is SHADER_STAGE_VERTEX_BIT, SHADER_STAGE_TESSELLATION_CONTROL_BIT, SHADER_STAGE_TESSELLATION_EVALUATION_BIT, or SHADER_STAGE_GEOMETRY_BIT).stage member of one element of pStages must be either SHADER_STAGE_VERTEX_BIT or SHADER_STAGE_MESH_BIT_NV.stage member of each element of pStages must not be SHADER_STAGE_COMPUTE_BITpStages includes a tessellation control shader stage, it must include a tessellation evaluation shader stagepStages includes a tessellation evaluation shader stage, it must include a tessellation control shader stagepStages includes a tessellation control shader stage and a tessellation evaluation shader stage, pTessellationState must be a valid pointer to a valid VkPipelineTessellationStateCreateInfo structurepStages includes tessellation shader stages, the shader code of at least one stage must contain an OpExecutionMode instruction that specifies the type of subdivision in the pipelinepStages includes tessellation shader stages, and the shader code of both stages contain an OpExecutionMode instruction that specifies the type of subdivision in the pipeline, they must both specify the same subdivision modepStages includes tessellation shader stages, the shader code of at least one stage must contain an OpExecutionMode instruction that specifies the output patch size in the pipelinepStages includes tessellation shader stages, and the shader code of both contain an OpExecutionMode instruction that specifies the out patch size in the pipeline, they must both specify the same patch sizepStages includes tessellation shader stages, the topology member of pInputAssembly must be PRIMITIVE_TOPOLOGY_PATCH_LISTtopology member of pInputAssembly is PRIMITIVE_TOPOLOGY_PATCH_LIST, pStages must include tessellation shader stagespStages includes a geometry shader stage, and does not include any tessellation shader stages, its shader code must contain an OpExecutionMode instruction that specifies an input primitive type that is compatible with the primitive topology specified in pInputAssemblypStages includes a geometry shader stage, and also includes tessellation shader stages, its shader code must contain an OpExecutionMode instruction that specifies an input primitive type that is compatible with the primitive topology that is output by the tessellation stagespStages includes a fragment shader stage and a geometry shader stage, 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 with PrimitiveID, in all execution pathspStages includes a fragment shader stage, its shader code must not read from any input attachment that is defined as ATTACHMENT_UNUSED in subpasspStages, and the rest of the state identified by this structure must adhere to the pipeline linking rules described in the Shader Interfaces chaptersubpass uses a depth/stencil attachment in renderPass that has a layout of IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL or IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL in the VkAttachmentReference defined by subpass, the depthWriteEnable member of pDepthStencilState must be FALSEsubpass uses a depth/stencil attachment in renderPass that has a layout of IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL or IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL in the VkAttachmentReference defined by subpass, the failOp, passOp and depthFailOp members of each of the front and back members of pDepthStencilState must be STENCIL_OP_KEEPblendEnable member of the corresponding element of the pAttachment member of pColorBlendState must be FALSE if the attached image’s format features does not contain FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT.attachmentCount member of pColorBlendState must be equal to the colorAttachmentCount used to create subpasspDynamicStates member of pDynamicState is DYNAMIC_STATE_VIEWPORT, the pViewports member of pViewportState must be a valid pointer to an array of pViewportState->viewportCount valid VkViewport structurespDynamicStates member of pDynamicState is DYNAMIC_STATE_SCISSOR, the pScissors member of pViewportState must be a valid pointer to an array of pViewportState->scissorCount VkRect2D structurespDynamicStates member of pDynamicState is DYNAMIC_STATE_LINE_WIDTH, the lineWidth member of pRasterizationState must be 1.0rasterizerDiscardEnable member of pRasterizationState is FALSE, pViewportState must be a valid pointer to a valid VkPipelineViewportStateCreateInfo structurerasterizerDiscardEnable member of pRasterizationState is FALSE, pMultisampleState must be a valid pointer to a valid VkPipelineMultisampleStateCreateInfo structurerasterizerDiscardEnable member of pRasterizationState is FALSE, and subpass uses a depth/stencil attachment, pDepthStencilState must be a valid pointer to a valid VkPipelineDepthStencilStateCreateInfo structurerasterizerDiscardEnable member of pRasterizationState is FALSE, and subpass uses color attachments, pColorBlendState must be a valid pointer to a valid VkPipelineColorBlendStateCreateInfo structurepDynamicStates member of pDynamicState is DYNAMIC_STATE_DEPTH_BIAS, and the depthBiasEnable member of pRasterizationState is TRUE, the depthBiasClamp member of pRasterizationState must be 0.0VK_EXT_depth_range_unrestricted extension is not enabled and no element of the pDynamicStates member of pDynamicState is DYNAMIC_STATE_DEPTH_BOUNDS, and the depthBoundsTestEnable member of pDepthStencilState is TRUE, the minDepthBounds and maxDepthBounds members of pDepthStencilState must be between 0.0 and 1.0, inclusivepDynamicStates member of pDynamicState is DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT, and the sampleLocationsEnable member of a VkPipelineSampleLocationsStateCreateInfoEXT structure included in the pNext chain of pMultisampleState is TRUE, sampleLocationsInfo.sampleLocationGridSize.width must evenly divide VkMultisamplePropertiesEXT::sampleLocationGridSize.width as returned by GetPhysicalDeviceMultisamplePropertiesEXT with a samples parameter equaling rasterizationSamplespDynamicStates member of pDynamicState is DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT, and the sampleLocationsEnable member of a VkPipelineSampleLocationsStateCreateInfoEXT structure included in the pNext chain of pMultisampleState is TRUE, sampleLocationsInfo.sampleLocationGridSize.height must evenly divide VkMultisamplePropertiesEXT::sampleLocationGridSize.height as returned by GetPhysicalDeviceMultisamplePropertiesEXT with a samples parameter equaling rasterizationSamplespDynamicStates member of pDynamicState is DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT, and the sampleLocationsEnable member of a VkPipelineSampleLocationsStateCreateInfoEXT structure included in the pNext chain of pMultisampleState is TRUE, sampleLocationsInfo.sampleLocationsPerPixel must equal rasterizationSamplessampleLocationsEnable member of a VkPipelineSampleLocationsStateCreateInfoEXT structure included in the pNext chain of pMultisampleState is TRUE, the fragment shader code must not statically use the extended instruction InterpolateAtSamplelayout must be consistent with all shaders specified in pStagesVK_AMD_mixed_attachment_samples nor the VK_NV_framebuffer_mixed_samples extensions are enabled, and if subpass uses color and/or depth/stencil attachments, then the rasterizationSamples member of pMultisampleState must be the same as the sample count for those subpass attachmentsVK_AMD_mixed_attachment_samples extension is enabled, and if subpass uses color and/or depth/stencil attachments, then the rasterizationSamples member of pMultisampleState must equal the maximum of the sample counts of those subpass attachmentsVK_NV_framebuffer_mixed_samples extension is enabled, and if subpass has a depth/stencil attachment and depth test, stencil test, or depth bounds test are enabled, then the rasterizationSamples member of pMultisampleState must be the same as the sample count of the depth/stencil attachmentVK_NV_framebuffer_mixed_samples extension is enabled, and if subpass has any color attachments, then the rasterizationSamples member of pMultisampleState must be greater than or equal to the sample count for those subpass attachmentsVK_NV_coverage_reduction_mode extension is enabled, the coverage reduction mode specified by VkPipelineCoverageReductionStateCreateInfoNV::coverageReductionMode, the rasterizationSamples member of pMultisampleState and the sample counts for the color and depth/stencil attachments (if the subpass has them) must be a valid combination returned by vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNVsubpass does not use any color and/or depth/stencil attachments, then the rasterizationSamples member of pMultisampleState must follow the rules for a zero-attachment subpasssubpass must be a valid subpass within renderPassrenderPass has multiview enabled and subpass has more than one bit set in the view mask and multiviewTessellationShader is not enabled, then pStages must not include tessellation shaders.renderPass has multiview enabled and subpass has more than one bit set in the view mask and multiviewGeometryShader is not enabled, then pStages must not include a geometry shader.renderPass has multiview enabled and subpass has more than one bit set in the view mask, shaders in the pipeline must not write to the Layer built-in outputrenderPass has multiview enabled, then all shaders must not include variables decorated with the Layer built-in decoration in their interfaces.flags must not contain the PIPELINE_CREATE_DISPATCH_BASE flag.pStages includes a fragment shader stage and an input attachment was referenced by the VkRenderPassInputAttachmentAspectCreateInfo at renderPass create time, its shader code must not read from any aspect that was not specified in the aspectMask of the corresponding VkInputAttachmentAspectReference structure.layout accessible to each shader stage that is used by the pipeline must be less than or equal to VkPhysicalDeviceLimits::maxPerStageResourcespDynamicStates member of pDynamicState is DYNAMIC_STATE_VIEWPORT_W_SCALING_NV, and the viewportWScalingEnable member of a VkPipelineViewportWScalingStateCreateInfoNV structure, included in the pNext chain of pViewportState, is TRUE, the pViewportWScalings member of the VkPipelineViewportWScalingStateCreateInfoNV must be a pointer to an array of VkPipelineViewportWScalingStateCreateInfoNV::viewportCount valid VkViewportWScalingNV structurespStages includes a vertex shader stage, pVertexInputState must be a valid pointer to a valid VkPipelineVertexInputStateCreateInfo structurepStages includes a vertex shader stage, pInputAssemblyState must be a valid pointer to a valid VkPipelineInputAssemblyStateCreateInfo structureXfb execution mode can be specified by only one shader stage in pStagespStages specifies Xfb execution mode it must be the last vertex processing stageVkPipelineRasterizationStateStreamCreateInfoEXT::rasterizationStream value other than zero is specified, all variables in the output interface of the entry point being compiled decorated with Position, PointSize, ClipDistance, or CullDistance must all be decorated with identical Stream values that match the rasterizationStreamVkPipelineRasterizationStateStreamCreateInfoEXT::rasterizationStream is zero, or not specified, all variables in the output interface of the entry point being compiled decorated with Position, PointSize, ClipDistance, or CullDistance must all be decorated with a Stream value of zero, or must not specify the Stream decorationGeometryStreams capability, then VkPhysicalDeviceTransformFeedbackFeaturesEXT::geometryStreams feature must be enabledXfb execution mode.lineRasterizationMode member of a VkPipelineRasterizationLineStateCreateInfoEXT structure included in the pNext chain of pRasterizationState is LINE_RASTERIZATION_MODE_BRESENHAM_EXT or LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT and if rasterization is enabled, then the alphaToCoverageEnable, alphaToOneEnable, and sampleShadingEnable members of pMultisampleState must all be FALSEstippledLineEnable member of VkPipelineRasterizationLineStateCreateInfoEXT is TRUE and no element of the pDynamicStates member of pDynamicState is DYNAMIC_STATE_LINE_STIPPLE_EXT, then the lineStippleFactor member of VkPipelineRasterizationLineStateCreateInfoEXT must be in the range [1,256]sType must be STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFOpNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkPipelineCompilerControlCreateInfoAMD, VkPipelineCreationFeedbackCreateInfoEXT, VkPipelineDiscardRectangleStateCreateInfoEXT, or VkPipelineRepresentativeFragmentTestStateCreateInfoNVsType member in the pNext chain must be uniqueflags must be a valid combination of VkPipelineCreateFlagBits valuespStages must be a valid pointer to an array of stageCount valid VkPipelineShaderStageCreateInfo structurespRasterizationState must be a valid pointer to a valid VkPipelineRasterizationStateCreateInfo structurepDynamicState is not NULL, pDynamicState must be a valid pointer to a valid VkPipelineDynamicStateCreateInfo structurelayout must be a valid VkPipelineLayout handlerenderPass must be a valid VkRenderPass handlestageCount must be greater than 0basePipelineHandle, layout, and renderPass that are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the same VkDeviceVkPipelineColorBlendStateCreateInfo, VkPipelineDepthStencilStateCreateInfo, VkPipelineDynamicStateCreateInfo, VkPipelineInputAssemblyStateCreateInfo, VkPipelineMultisampleStateCreateInfo, VkPipelineRasterizationStateCreateInfo, VkPipelineShaderStageCreateInfo, VkPipelineTessellationStateCreateInfo, VkPipelineVertexInputStateCreateInfo, VkPipelineViewportStateCreateInfo, CreateGraphicsPipelines
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – a bitmask of VkPipelineCreateFlagBits specifying how the pipeline will be generated.stageCount – the number of entries in the pStages array.pStages – a pointer to an array of stageCount VkPipelineShaderStageCreateInfo structures describing the set of the shader stages to be included in the graphics pipeline.pVertexInputState – a pointer to a VkPipelineVertexInputStateCreateInfo structure. It is ignored if the pipeline includes a mesh shader stage.pInputAssemblyState – a pointer to a VkPipelineInputAssemblyStateCreateInfo structure which determines input assembly behavior, as described in Drawing Commands. It is ignored if the pipeline includes a mesh shader stage.pTessellationState – a pointer to a VkPipelineTessellationStateCreateInfo structure, and is ignored if the pipeline does not include a tessellation control shader stage and tessellation evaluation shader stage.pViewportState – a pointer to a VkPipelineViewportStateCreateInfo structure, and is ignored if the pipeline has rasterization disabled.pRasterizationState – a pointer to a VkPipelineRasterizationStateCreateInfo structure.pMultisampleState – a pointer to a VkPipelineMultisampleStateCreateInfo structure, and is ignored if the pipeline has rasterization disabled.pDepthStencilState – a pointer to a VkPipelineDepthStencilStateCreateInfo structure, and is ignored if the pipeline has rasterization disabled or if the subpass of the render pass the pipeline is created against does not use a depth/stencil attachment.pColorBlendState – a pointer to a VkPipelineColorBlendStateCreateInfo structure, and is ignored if the pipeline has rasterization disabled or if the subpass of the render pass the pipeline is created against does not use any color attachments.pDynamicState – a pointer to a VkPipelineDynamicStateCreateInfo structure, 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 be NULL, which means no state in the pipeline is considered dynamic.layout – the description of binding locations used by both the pipeline and descriptor sets used with the pipeline.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 an instance of any render pass compatible with the one provided. See Render Pass Compatibility for more information.subpass – the index of the subpass in the render pass where this pipeline will be used.basePipelineHandle – a pipeline to derive from.basePipelineIndex – an index into the pCreateInfos parameter to use as a pipeline to derive from.
struct VkGraphicsPipelineCreateInfo {
VkStructureType sType;
void const * pNext;
VkPipelineCreateFlags flags;
uint32_t stageCount;
VkPipelineShaderStageCreateInfo const * pStages;
VkPipelineVertexInputStateCreateInfo const * pVertexInputState;
VkPipelineInputAssemblyStateCreateInfo const * pInputAssemblyState;
VkPipelineTessellationStateCreateInfo const * pTessellationState;
VkPipelineViewportStateCreateInfo const * pViewportState;
VkPipelineRasterizationStateCreateInfo const * pRasterizationState;
VkPipelineMultisampleStateCreateInfo const * pMultisampleState;
VkPipelineDepthStencilStateCreateInfo const * pDepthStencilState;
VkPipelineColorBlendStateCreateInfo const * pColorBlendState;
VkPipelineDynamicStateCreateInfo const * pDynamicState;
VkPipelineLayout layout;
VkRenderPass renderPass;
uint32_t subpass;
VkPipeline basePipelineHandle;
int32_t basePipelineIndex;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkGraphicsPipelineCreateInfo.Buffer
An array of
VkGraphicsPipelineCreateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BASEPIPELINEHANDLE
The struct member offsets.
|
static int |
BASEPIPELINEINDEX
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
LAYOUT
The struct member offsets.
|
static int |
PCOLORBLENDSTATE
The struct member offsets.
|
static int |
PDEPTHSTENCILSTATE
The struct member offsets.
|
static int |
PDYNAMICSTATE
The struct member offsets.
|
static int |
PINPUTASSEMBLYSTATE
The struct member offsets.
|
static int |
PMULTISAMPLESTATE
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PRASTERIZATIONSTATE
The struct member offsets.
|
static int |
PSTAGES
The struct member offsets.
|
static int |
PTESSELLATIONSTATE
The struct member offsets.
|
static int |
PVERTEXINPUTSTATE
The struct member offsets.
|
static int |
PVIEWPORTSTATE
The struct member offsets.
|
static int |
RENDERPASS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STAGECOUNT
The struct member offsets.
|
static int |
STYPE
The struct member offsets.
|
static int |
SUBPASS
The struct member offsets.
|
| Constructor and Description |
|---|
VkGraphicsPipelineCreateInfo(java.nio.ByteBuffer container)
Creates a
VkGraphicsPipelineCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
long |
basePipelineHandle()
Returns the value of the
basePipelineHandle field. |
VkGraphicsPipelineCreateInfo |
basePipelineHandle(long value)
Sets the specified value to the
basePipelineHandle field. |
int |
basePipelineIndex()
Returns the value of the
basePipelineIndex field. |
VkGraphicsPipelineCreateInfo |
basePipelineIndex(int value)
Sets the specified value to the
basePipelineIndex field. |
static VkGraphicsPipelineCreateInfo |
calloc()
Returns a new
VkGraphicsPipelineCreateInfo instance allocated with memCalloc. |
static VkGraphicsPipelineCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkGraphicsPipelineCreateInfo.Buffer instance allocated with memCalloc. |
static VkGraphicsPipelineCreateInfo |
callocStack()
Returns a new
VkGraphicsPipelineCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkGraphicsPipelineCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkGraphicsPipelineCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkGraphicsPipelineCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkGraphicsPipelineCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkGraphicsPipelineCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkGraphicsPipelineCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkGraphicsPipelineCreateInfo |
create()
Returns a new
VkGraphicsPipelineCreateInfo instance allocated with BufferUtils. |
static VkGraphicsPipelineCreateInfo.Buffer |
create(int capacity)
Returns a new
VkGraphicsPipelineCreateInfo.Buffer instance allocated with BufferUtils. |
static VkGraphicsPipelineCreateInfo |
create(long address)
Returns a new
VkGraphicsPipelineCreateInfo instance for the specified memory address. |
static VkGraphicsPipelineCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkGraphicsPipelineCreateInfo.Buffer instance at the specified memory. |
static VkGraphicsPipelineCreateInfo |
createSafe(long address)
|
static VkGraphicsPipelineCreateInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkGraphicsPipelineCreateInfo |
flags(int value)
Sets the specified value to the
flags field. |
long |
layout()
Returns the value of the
layout field. |
VkGraphicsPipelineCreateInfo |
layout(long value)
Sets the specified value to the
layout field. |
static VkGraphicsPipelineCreateInfo |
malloc()
Returns a new
VkGraphicsPipelineCreateInfo instance allocated with memAlloc. |
static VkGraphicsPipelineCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkGraphicsPipelineCreateInfo.Buffer instance allocated with memAlloc. |
static VkGraphicsPipelineCreateInfo |
mallocStack()
Returns a new
VkGraphicsPipelineCreateInfo instance allocated on the thread-local MemoryStack. |
static VkGraphicsPipelineCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkGraphicsPipelineCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkGraphicsPipelineCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkGraphicsPipelineCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkGraphicsPipelineCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkGraphicsPipelineCreateInfo instance allocated on the specified MemoryStack. |
static long |
nbasePipelineHandle(long struct)
Unsafe version of
basePipelineHandle(). |
static void |
nbasePipelineHandle(long struct,
long value)
Unsafe version of
basePipelineHandle. |
static int |
nbasePipelineIndex(long struct)
Unsafe version of
basePipelineIndex(). |
static void |
nbasePipelineIndex(long struct,
int value)
Unsafe version of
basePipelineIndex. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static long |
nlayout(long struct)
Unsafe version of
layout(). |
static void |
nlayout(long struct,
long value)
Unsafe version of
layout. |
static VkPipelineColorBlendStateCreateInfo |
npColorBlendState(long struct)
Unsafe version of
pColorBlendState(). |
static void |
npColorBlendState(long struct,
VkPipelineColorBlendStateCreateInfo value)
Unsafe version of
pColorBlendState. |
static VkPipelineDepthStencilStateCreateInfo |
npDepthStencilState(long struct)
Unsafe version of
pDepthStencilState(). |
static void |
npDepthStencilState(long struct,
VkPipelineDepthStencilStateCreateInfo value)
Unsafe version of
pDepthStencilState. |
static VkPipelineDynamicStateCreateInfo |
npDynamicState(long struct)
Unsafe version of
pDynamicState(). |
static void |
npDynamicState(long struct,
VkPipelineDynamicStateCreateInfo value)
Unsafe version of
pDynamicState. |
static VkPipelineInputAssemblyStateCreateInfo |
npInputAssemblyState(long struct)
Unsafe version of
pInputAssemblyState(). |
static void |
npInputAssemblyState(long struct,
VkPipelineInputAssemblyStateCreateInfo value)
Unsafe version of
pInputAssemblyState. |
static VkPipelineMultisampleStateCreateInfo |
npMultisampleState(long struct)
Unsafe version of
pMultisampleState(). |
static void |
npMultisampleState(long struct,
VkPipelineMultisampleStateCreateInfo value)
Unsafe version of
pMultisampleState. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static VkPipelineRasterizationStateCreateInfo |
npRasterizationState(long struct)
Unsafe version of
pRasterizationState(). |
static void |
npRasterizationState(long struct,
VkPipelineRasterizationStateCreateInfo value)
Unsafe version of
pRasterizationState. |
static VkPipelineShaderStageCreateInfo.Buffer |
npStages(long struct)
Unsafe version of
pStages(). |
static void |
npStages(long struct,
VkPipelineShaderStageCreateInfo.Buffer value)
Unsafe version of
pStages. |
static VkPipelineTessellationStateCreateInfo |
npTessellationState(long struct)
Unsafe version of
pTessellationState(). |
static void |
npTessellationState(long struct,
VkPipelineTessellationStateCreateInfo value)
Unsafe version of
pTessellationState. |
static VkPipelineVertexInputStateCreateInfo |
npVertexInputState(long struct)
Unsafe version of
pVertexInputState(). |
static void |
npVertexInputState(long struct,
VkPipelineVertexInputStateCreateInfo value)
Unsafe version of
pVertexInputState. |
static VkPipelineViewportStateCreateInfo |
npViewportState(long struct)
Unsafe version of
pViewportState(). |
static void |
npViewportState(long struct,
VkPipelineViewportStateCreateInfo value)
Unsafe version of
pViewportState. |
static long |
nrenderPass(long struct)
Unsafe version of
renderPass(). |
static void |
nrenderPass(long struct,
long value)
Unsafe version of
renderPass. |
static int |
nstageCount(long struct)
Unsafe version of
stageCount(). |
static void |
nstageCount(long struct,
int value)
Sets the specified value to the
stageCount field of the specified struct. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
nsubpass(long struct)
Unsafe version of
subpass(). |
static void |
nsubpass(long struct,
int value)
Unsafe version of
subpass. |
VkPipelineColorBlendStateCreateInfo |
pColorBlendState()
Returns a
VkPipelineColorBlendStateCreateInfo view of the struct pointed to by the pColorBlendState field. |
VkGraphicsPipelineCreateInfo |
pColorBlendState(VkPipelineColorBlendStateCreateInfo value)
Sets the address of the specified
VkPipelineColorBlendStateCreateInfo to the pColorBlendState field. |
VkPipelineDepthStencilStateCreateInfo |
pDepthStencilState()
Returns a
VkPipelineDepthStencilStateCreateInfo view of the struct pointed to by the pDepthStencilState field. |
VkGraphicsPipelineCreateInfo |
pDepthStencilState(VkPipelineDepthStencilStateCreateInfo value)
Sets the address of the specified
VkPipelineDepthStencilStateCreateInfo to the pDepthStencilState field. |
VkPipelineDynamicStateCreateInfo |
pDynamicState()
Returns a
VkPipelineDynamicStateCreateInfo view of the struct pointed to by the pDynamicState field. |
VkGraphicsPipelineCreateInfo |
pDynamicState(VkPipelineDynamicStateCreateInfo value)
Sets the address of the specified
VkPipelineDynamicStateCreateInfo to the pDynamicState field. |
VkPipelineInputAssemblyStateCreateInfo |
pInputAssemblyState()
Returns a
VkPipelineInputAssemblyStateCreateInfo view of the struct pointed to by the pInputAssemblyState field. |
VkGraphicsPipelineCreateInfo |
pInputAssemblyState(VkPipelineInputAssemblyStateCreateInfo value)
Sets the address of the specified
VkPipelineInputAssemblyStateCreateInfo to the pInputAssemblyState field. |
VkPipelineMultisampleStateCreateInfo |
pMultisampleState()
Returns a
VkPipelineMultisampleStateCreateInfo view of the struct pointed to by the pMultisampleState field. |
VkGraphicsPipelineCreateInfo |
pMultisampleState(VkPipelineMultisampleStateCreateInfo value)
Sets the address of the specified
VkPipelineMultisampleStateCreateInfo to the pMultisampleState field. |
long |
pNext()
Returns the value of the
pNext field. |
VkGraphicsPipelineCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPipelineRasterizationStateCreateInfo |
pRasterizationState()
Returns a
VkPipelineRasterizationStateCreateInfo view of the struct pointed to by the pRasterizationState field. |
VkGraphicsPipelineCreateInfo |
pRasterizationState(VkPipelineRasterizationStateCreateInfo value)
Sets the address of the specified
VkPipelineRasterizationStateCreateInfo to the pRasterizationState field. |
VkPipelineShaderStageCreateInfo.Buffer |
pStages()
Returns a
VkPipelineShaderStageCreateInfo.Buffer view of the struct array pointed to by the pStages field. |
VkGraphicsPipelineCreateInfo |
pStages(VkPipelineShaderStageCreateInfo.Buffer value)
Sets the address of the specified
VkPipelineShaderStageCreateInfo.Buffer to the pStages field. |
VkPipelineTessellationStateCreateInfo |
pTessellationState()
Returns a
VkPipelineTessellationStateCreateInfo view of the struct pointed to by the pTessellationState field. |
VkGraphicsPipelineCreateInfo |
pTessellationState(VkPipelineTessellationStateCreateInfo value)
Sets the address of the specified
VkPipelineTessellationStateCreateInfo to the pTessellationState field. |
VkPipelineVertexInputStateCreateInfo |
pVertexInputState()
Returns a
VkPipelineVertexInputStateCreateInfo view of the struct pointed to by the pVertexInputState field. |
VkGraphicsPipelineCreateInfo |
pVertexInputState(VkPipelineVertexInputStateCreateInfo value)
Sets the address of the specified
VkPipelineVertexInputStateCreateInfo to the pVertexInputState field. |
VkPipelineViewportStateCreateInfo |
pViewportState()
Returns a
VkPipelineViewportStateCreateInfo view of the struct pointed to by the pViewportState field. |
VkGraphicsPipelineCreateInfo |
pViewportState(VkPipelineViewportStateCreateInfo value)
Sets the address of the specified
VkPipelineViewportStateCreateInfo to the pViewportState field. |
long |
renderPass()
Returns the value of the
renderPass field. |
VkGraphicsPipelineCreateInfo |
renderPass(long value)
Sets the specified value to the
renderPass field. |
VkGraphicsPipelineCreateInfo |
set(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.
|
VkGraphicsPipelineCreateInfo |
set(VkGraphicsPipelineCreateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
stageCount()
Returns the value of the
stageCount field. |
int |
sType()
Returns the value of the
sType field. |
VkGraphicsPipelineCreateInfo |
sType(int value)
Sets the specified value to the
sType field. |
int |
subpass()
Returns the value of the
subpass field. |
VkGraphicsPipelineCreateInfo |
subpass(int value)
Sets the specified value to the
subpass field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int STAGECOUNT
public static final int PSTAGES
public static final int PVERTEXINPUTSTATE
public static final int PINPUTASSEMBLYSTATE
public static final int PTESSELLATIONSTATE
public static final int PVIEWPORTSTATE
public static final int PRASTERIZATIONSTATE
public static final int PMULTISAMPLESTATE
public static final int PDEPTHSTENCILSTATE
public static final int PCOLORBLENDSTATE
public static final int PDYNAMICSTATE
public static final int LAYOUT
public static final int RENDERPASS
public static final int SUBPASS
public static final int BASEPIPELINEHANDLE
public static final int BASEPIPELINEINDEX
public VkGraphicsPipelineCreateInfo(java.nio.ByteBuffer container)
VkGraphicsPipelineCreateInfo instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int flags()
flags field.public int stageCount()
stageCount field.public VkPipelineShaderStageCreateInfo.Buffer pStages()
VkPipelineShaderStageCreateInfo.Buffer view of the struct array pointed to by the pStages field.@Nullable public VkPipelineVertexInputStateCreateInfo pVertexInputState()
VkPipelineVertexInputStateCreateInfo view of the struct pointed to by the pVertexInputState field.@Nullable public VkPipelineInputAssemblyStateCreateInfo pInputAssemblyState()
VkPipelineInputAssemblyStateCreateInfo view of the struct pointed to by the pInputAssemblyState field.@Nullable public VkPipelineTessellationStateCreateInfo pTessellationState()
VkPipelineTessellationStateCreateInfo view of the struct pointed to by the pTessellationState field.@Nullable public VkPipelineViewportStateCreateInfo pViewportState()
VkPipelineViewportStateCreateInfo view of the struct pointed to by the pViewportState field.public VkPipelineRasterizationStateCreateInfo pRasterizationState()
VkPipelineRasterizationStateCreateInfo view of the struct pointed to by the pRasterizationState field.@Nullable public VkPipelineMultisampleStateCreateInfo pMultisampleState()
VkPipelineMultisampleStateCreateInfo view of the struct pointed to by the pMultisampleState field.@Nullable public VkPipelineDepthStencilStateCreateInfo pDepthStencilState()
VkPipelineDepthStencilStateCreateInfo view of the struct pointed to by the pDepthStencilState field.@Nullable public VkPipelineColorBlendStateCreateInfo pColorBlendState()
VkPipelineColorBlendStateCreateInfo view of the struct pointed to by the pColorBlendState field.@Nullable public VkPipelineDynamicStateCreateInfo pDynamicState()
VkPipelineDynamicStateCreateInfo view of the struct pointed to by the pDynamicState field.public long layout()
layout field.public long renderPass()
renderPass field.public int subpass()
subpass field.public long basePipelineHandle()
basePipelineHandle field.public int basePipelineIndex()
basePipelineIndex field.public VkGraphicsPipelineCreateInfo sType(int value)
sType field.public VkGraphicsPipelineCreateInfo pNext(long value)
pNext field.public VkGraphicsPipelineCreateInfo flags(int value)
flags field.public VkGraphicsPipelineCreateInfo pStages(VkPipelineShaderStageCreateInfo.Buffer value)
VkPipelineShaderStageCreateInfo.Buffer to the pStages field.public VkGraphicsPipelineCreateInfo pVertexInputState(@Nullable VkPipelineVertexInputStateCreateInfo value)
VkPipelineVertexInputStateCreateInfo to the pVertexInputState field.public VkGraphicsPipelineCreateInfo pInputAssemblyState(@Nullable VkPipelineInputAssemblyStateCreateInfo value)
VkPipelineInputAssemblyStateCreateInfo to the pInputAssemblyState field.public VkGraphicsPipelineCreateInfo pTessellationState(@Nullable VkPipelineTessellationStateCreateInfo value)
VkPipelineTessellationStateCreateInfo to the pTessellationState field.public VkGraphicsPipelineCreateInfo pViewportState(@Nullable VkPipelineViewportStateCreateInfo value)
VkPipelineViewportStateCreateInfo to the pViewportState field.public VkGraphicsPipelineCreateInfo pRasterizationState(VkPipelineRasterizationStateCreateInfo value)
VkPipelineRasterizationStateCreateInfo to the pRasterizationState field.public VkGraphicsPipelineCreateInfo pMultisampleState(@Nullable VkPipelineMultisampleStateCreateInfo value)
VkPipelineMultisampleStateCreateInfo to the pMultisampleState field.public VkGraphicsPipelineCreateInfo pDepthStencilState(@Nullable VkPipelineDepthStencilStateCreateInfo value)
VkPipelineDepthStencilStateCreateInfo to the pDepthStencilState field.public VkGraphicsPipelineCreateInfo pColorBlendState(@Nullable VkPipelineColorBlendStateCreateInfo value)
VkPipelineColorBlendStateCreateInfo to the pColorBlendState field.public VkGraphicsPipelineCreateInfo pDynamicState(@Nullable VkPipelineDynamicStateCreateInfo value)
VkPipelineDynamicStateCreateInfo to the pDynamicState field.public VkGraphicsPipelineCreateInfo layout(long value)
layout field.public VkGraphicsPipelineCreateInfo renderPass(long value)
renderPass field.public VkGraphicsPipelineCreateInfo subpass(int value)
subpass field.public VkGraphicsPipelineCreateInfo basePipelineHandle(long value)
basePipelineHandle field.public VkGraphicsPipelineCreateInfo basePipelineIndex(int value)
basePipelineIndex field.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)
public VkGraphicsPipelineCreateInfo set(VkGraphicsPipelineCreateInfo src)
src - the source structpublic static VkGraphicsPipelineCreateInfo malloc()
VkGraphicsPipelineCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkGraphicsPipelineCreateInfo calloc()
VkGraphicsPipelineCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkGraphicsPipelineCreateInfo create()
VkGraphicsPipelineCreateInfo instance allocated with BufferUtils.public static VkGraphicsPipelineCreateInfo create(long address)
VkGraphicsPipelineCreateInfo instance for the specified memory address.@Nullable public static VkGraphicsPipelineCreateInfo createSafe(long address)
public static VkGraphicsPipelineCreateInfo.Buffer malloc(int capacity)
VkGraphicsPipelineCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkGraphicsPipelineCreateInfo.Buffer calloc(int capacity)
VkGraphicsPipelineCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkGraphicsPipelineCreateInfo.Buffer create(int capacity)
VkGraphicsPipelineCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkGraphicsPipelineCreateInfo.Buffer create(long address, int capacity)
VkGraphicsPipelineCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkGraphicsPipelineCreateInfo.Buffer createSafe(long address, int capacity)
public static VkGraphicsPipelineCreateInfo mallocStack()
VkGraphicsPipelineCreateInfo instance allocated on the thread-local MemoryStack.public static VkGraphicsPipelineCreateInfo callocStack()
VkGraphicsPipelineCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkGraphicsPipelineCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkGraphicsPipelineCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkGraphicsPipelineCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkGraphicsPipelineCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkGraphicsPipelineCreateInfo.Buffer mallocStack(int capacity)
VkGraphicsPipelineCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkGraphicsPipelineCreateInfo.Buffer callocStack(int capacity)
VkGraphicsPipelineCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkGraphicsPipelineCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkGraphicsPipelineCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkGraphicsPipelineCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkGraphicsPipelineCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nflags(long struct)
flags().public static int nstageCount(long struct)
stageCount().public static VkPipelineShaderStageCreateInfo.Buffer npStages(long struct)
pStages().@Nullable public static VkPipelineVertexInputStateCreateInfo npVertexInputState(long struct)
pVertexInputState().@Nullable public static VkPipelineInputAssemblyStateCreateInfo npInputAssemblyState(long struct)
pInputAssemblyState().@Nullable public static VkPipelineTessellationStateCreateInfo npTessellationState(long struct)
pTessellationState().@Nullable public static VkPipelineViewportStateCreateInfo npViewportState(long struct)
pViewportState().public static VkPipelineRasterizationStateCreateInfo npRasterizationState(long struct)
pRasterizationState().@Nullable public static VkPipelineMultisampleStateCreateInfo npMultisampleState(long struct)
pMultisampleState().@Nullable public static VkPipelineDepthStencilStateCreateInfo npDepthStencilState(long struct)
pDepthStencilState().@Nullable public static VkPipelineColorBlendStateCreateInfo npColorBlendState(long struct)
pColorBlendState().@Nullable public static VkPipelineDynamicStateCreateInfo npDynamicState(long struct)
pDynamicState().public static long nlayout(long struct)
layout().public static long nrenderPass(long struct)
renderPass().public static int nsubpass(long struct)
subpass().public static long nbasePipelineHandle(long struct)
basePipelineHandle().public static int nbasePipelineIndex(long struct)
basePipelineIndex().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void nstageCount(long struct,
int value)
stageCount field of the specified struct.public static void npStages(long struct,
VkPipelineShaderStageCreateInfo.Buffer value)
pStages.public static void npVertexInputState(long struct,
@Nullable
VkPipelineVertexInputStateCreateInfo value)
pVertexInputState.public static void npInputAssemblyState(long struct,
@Nullable
VkPipelineInputAssemblyStateCreateInfo value)
pInputAssemblyState.public static void npTessellationState(long struct,
@Nullable
VkPipelineTessellationStateCreateInfo value)
pTessellationState.public static void npViewportState(long struct,
@Nullable
VkPipelineViewportStateCreateInfo value)
pViewportState.public static void npRasterizationState(long struct,
VkPipelineRasterizationStateCreateInfo value)
pRasterizationState.public static void npMultisampleState(long struct,
@Nullable
VkPipelineMultisampleStateCreateInfo value)
pMultisampleState.public static void npDepthStencilState(long struct,
@Nullable
VkPipelineDepthStencilStateCreateInfo value)
pDepthStencilState.public static void npColorBlendState(long struct,
@Nullable
VkPipelineColorBlendStateCreateInfo value)
pColorBlendState.public static void npDynamicState(long struct,
@Nullable
VkPipelineDynamicStateCreateInfo value)
pDynamicState.public static void nlayout(long struct,
long value)
layout.public static void nrenderPass(long struct,
long value)
renderPass.public static void nsubpass(long struct,
int value)
subpass.public static void nbasePipelineHandle(long struct,
long value)
basePipelineHandle.public static void nbasePipelineIndex(long struct,
int value)
basePipelineIndex.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.