Package org.lwjgl.vulkan
Class VkGraphicsPipelineCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkGraphicsPipelineCreateInfo
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkGraphicsPipelineCreateInfo extends Struct
Khronos Reference Page
Vulkan SpecificationIncludes an array of shader create info structures containing all the desired active shader stages, as well as creation info to define all relevant fixed-function stages, and a pipeline layout.
Valid Usage
sTypemust beSTRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFOpNextmust beNULLflagsmust be a valid combination ofVkPipelineCreateFlagBitsvaluespStagesmust be a pointer to an array ofstageCountvalidVkPipelineShaderStageCreateInfostructurespVertexInputStatemust be a pointer to a validVkPipelineVertexInputStateCreateInfostructurepInputAssemblyStatemust be a pointer to a validVkPipelineInputAssemblyStateCreateInfostructurepRasterizationStatemust be a pointer to a validVkPipelineRasterizationStateCreateInfostructure- If
pDynamicStateis notNULL,pDynamicStatemust be a pointer to a validVkPipelineDynamicStateCreateInfostructure layoutmust be a validVkPipelineLayouthandlerenderPassmust be a validVkRenderPasshandlestageCountmust be greater than 0- Each of
layout,renderPassandbasePipelineHandlethat are valid handles must have been created, allocated or retrieved from the sameVkDevice - If
flagscontains thePIPELINE_CREATE_DERIVATIVE_BITflag, andbasePipelineIndexis not-1,basePipelineHandlemust beNULL_HANDLE - If
flagscontains thePIPELINE_CREATE_DERIVATIVE_BITflag, andbasePipelineIndexis not-1, it must be a valid index into the calling command'spCreateInfosparameter - If
flagscontains thePIPELINE_CREATE_DERIVATIVE_BITflag, andbasePipelineHandleis notNULL_HANDLE,basePipelineIndexmust be-1 - If
flagscontains thePIPELINE_CREATE_DERIVATIVE_BITflag, andbasePipelineHandleis notNULL_HANDLE,basePipelineHandlemust be a validVkPipelinehandle - If
flagscontains thePIPELINE_CREATE_DERIVATIVE_BITflag, andbasePipelineHandleis notNULL_HANDLE, it must be a valid handle to a graphicsVkPipeline - The
stagemember of each element ofpStagesmust be unique - The
stagemember of one element ofpStagesmust beSHADER_STAGE_VERTEX_BIT - The
stagemember of any given element ofpStagesmust not beSHADER_STAGE_COMPUTE_BIT - If
pStagesincludes a tessellation control shader stage, it must include a tessellation evaluation shader stage - If
pStagesincludes a tessellation evaluation shader stage, it must include a tessellation control shader stage - If
pStagesincludes a tessellation control shader stage and a tessellation evaluation shader stage,pTessellationStatemust not beNULL - If
pStagesincludes both a tessellation control shader stage and a tessellation evaluation shader stage, the shader code of at least one must contain anOpExecutionModeinstruction that specifies the type of subdivision in the pipeline - If
pStagesincludes both a tessellation control shader stage and a tessellation evaluation shader stage, and the shader code of both contain anOpExecutionModeinstruction that specifies the type of subdivision in the pipeline, they must both specify the same subdivision mode - If
pStagesincludes both a tessellation control shader stage and a tessellation evaluation shader stage, the shader code of at least one must contain anOpExecutionModeinstruction that specifies the output patch size in the pipeline - If
pStagesincludes both a tessellation control shader stage and a tessellation evaluation shader stage, and the shader code of both contain anOpExecutionModeinstruction that specifies the out patch size in the pipeline, they must both specify the same patch size - If
pStagesincludes tessellation shader stages, thetopologymember ofpInputAssemblymust bePRIMITIVE_TOPOLOGY_PATCH_LIST - If
pStagesincludes a geometry shader stage, and doesn't include any tessellation shader stages, its shader code must contain anOpExecutionModeinstruction that specifies an input primitive type that is compatible with the primitive topology specified inpInputAssembly - If
pStagesincludes a geometry shader stage, and also includes tessellation shader stages, its shader code must contain anOpExecutionModeinstruction that specifies an input primitive type that is compatible with the primitive topology that is output by the tessellation stages - If
pStagesincludes a fragment shader stage and a geometry shader stage, and the fragment shader code reads from an input variable that is decorated withPrimitiveID, then the geometry shader code must write to a matching output variable, decorated withPrimitiveID, in all execution paths - If
pStagesincludes a fragment shader stage, its shader code must not read from any input attachment that is defined asATTACHMENT_UNUSEDinsubpass - The shader code for the entry points identified by
pStages, and the rest of the state identified by this structure must adhere to the pipeline linking rules described in the Shader Interfaces chapter - If
subpassuses a depth/stencil attachment inrenderpassthat has a layout ofIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMALin theVkAttachmentReferencedefined bysubpass, andpDepthStencilStateis notNULL, thedepthWriteEnablemember ofpDepthStencilStatemust beFALSE - If
subpassuses a depth/stencil attachment inrenderpassthat has a layout ofIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMALin theVkAttachmentReferencedefined bysubpass, andpDepthStencilStateis notNULL, thefailOp,passOpanddepthFailOpmembers of each of thefrontandbackmembers ofpDepthStencilStatemust beSTENCIL_OP_KEEP - If
pColorBlendStateis notNULL, theblendEnablemember of each element of thepAttachmentmember ofpColorBlendStatemust beFALSEif theformatof the attachment referred to insubpassofrenderPassdoes not support color blend operations, as specified by theFORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BITflag inVkFormatProperties::linearTilingFeaturesorVkFormatProperties::optimalTilingFeaturesreturned byGetPhysicalDeviceFormatProperties - If
pColorBlendStateis notNULL, TheattachmentCountmember ofpColorBlendStatemust be equal to thecolorAttachmentCountused to createsubpass - If no element of the
pDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_VIEWPORT, thepViewportsmember ofpViewportStatemust be a pointer to an array ofpViewportState->viewportCountVkViewportstructures - If no element of the
pDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_SCISSOR, thepScissorsmember ofpViewportStatemust be a pointer to an array ofpViewportState->scissorCountVkRect2Dstructures - If the wide lines feature is not enabled, and no element of the
pDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_LINE_WIDTH, thelineWidthmember ofpRasterizationStatemust be1.0 - If the
rasterizerDiscardEnablemember ofpRasterizationStateisFALSE,pViewportStatemust be a pointer to a validVkPipelineViewportStateCreateInfostructure - If the
rasterizerDiscardEnablemember ofpRasterizationStateisFALSE,pMultisampleStatemust be a pointer to a validVkPipelineMultisampleStateCreateInfostructure - If the
rasterizerDiscardEnablemember ofpRasterizationStateisFALSE, andsubpassuses a depth/stencil attachment,pDepthStencilStatemust be a pointer to a validVkPipelineDepthStencilStateCreateInfostructure - If the
rasterizerDiscardEnablemember ofpRasterizationStateisFALSE, andsubpassuses color attachments,pColorBlendStatemust be a pointer to a validVkPipelineColorBlendStateCreateInfostructure - If the depth bias clamping feature is not enabled, no element of the
pDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_DEPTH_BIAS, and thedepthBiasEnablemember ofpDepthStencilisTRUE, thedepthBiasClampmember ofpDepthStencilmust be0.0 - If no element of the
pDynamicStatesmember ofpDynamicStateisDYNAMIC_STATE_DEPTH_BOUNDS, and thedepthBoundsTestEnablemember ofpDepthStencilisTRUE, theminDepthBoundsandmaxDepthBoundsmembers ofpDepthStencilmust be between0.0and1.0, inclusive layoutmust be consistent with all shaders specified inpStages- If
subpassuses color and/or depth/stencil attachments, then therasterizationSamplesmember ofpMultisampleStatemust be the same as the sample count for those subpass attachments - If
subpassdoes not use any color and/or depth/stencil attachments, then therasterizationSamplesmember ofpMultisampleStatemust follow the rules for a zero-attachment subpass subpassmust be a valid subpass withinrenderpass
Member documentation
sType– the type of this structure. Must be:STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFOpNext– reserved for use by extensionsflags– a bitfield ofVkPipelineCreateFlagBitscontrolling how the pipeline will be generated. One or more of:PIPELINE_CREATE_ALLOW_DERIVATIVES_BITPIPELINE_CREATE_DERIVATIVE_BITPIPELINE_CREATE_DISABLE_OPTIMIZATION_BITstageCount– the number of entries in thepStagesarraypStages– an array of sizestageCountstructures of typeVkPipelineShaderStageCreateInfodescribing the set of the shader stages to be included in the graphics pipelinepVertexInputState– a pointer to an instance of theVkPipelineVertexInputStateCreateInfostructurepInputAssemblyState– a pointer to an instance of theVkPipelineInputAssemblyStateCreateInfostructure which determines input assembly behaviorpTessellationState– a pointer to an instance of theVkPipelineTessellationStateCreateInfostructure, orNULLif the pipeline does not include a tessellation control shader stage and tessellation evaluation shader stagepViewportState– a pointer to an instance of theVkPipelineViewportStateCreateInfostructure, orNULLif the pipeline has rasterization disabledpRasterizationState– a pointer to an instance of theVkPipelineRasterizationStateCreateInfostructurepMultisampleState– a pointer to an instance of theVkPipelineMultisampleStateCreateInfo, orNULLif the pipeline has rasterization disabledpDepthStencilState– a pointer to an instance of theVkPipelineDepthStencilStateCreateInfostructure, orNULLif the pipeline has rasterization disabled or if the subpass of the render pass the pipeline is created against does not use a depth/stencil attachmentpColorBlendState– a pointer to an instance of theVkPipelineColorBlendStateCreateInfostructure, orNULLif the pipeline has rasterization disabled or if the subpass of the render pass the pipeline is created against does not use any color attachmentspDynamicState– a pointer toVkPipelineDynamicStateCreateInfoand 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– the description of binding locations used by both the pipeline and descriptor sets used with the pipelinerenderPass– a handle to a render pass object describing the environment in which the pipeline will be used; the pipeline can be used with an instance of any render pass compatible with the one providedsubpass– the index of the subpass inrenderPasswhere this pipeline will be usedbasePipelineHandle– a pipeline to derive frombasePipelineIndex– an index into thepCreateInfosparameter to use as a pipeline to derive from
Layout
struct VkGraphicsPipelineCreateInfo { VkStructureType sType; const void * pNext; VkPipelineCreateFlags flags; uint32_t stageCount; const VkPipelineShaderStageCreateInfo * pStages; const VkPipelineVertexInputStateCreateInfo * pVertexInputState; const VkPipelineInputAssemblyStateCreateInfo * pInputAssemblyState; const VkPipelineTessellationStateCreateInfo * pTessellationState; const VkPipelineViewportStateCreateInfo * pViewportState; const VkPipelineRasterizationStateCreateInfo * pRasterizationState; const VkPipelineMultisampleStateCreateInfo * pMultisampleState; const VkPipelineDepthStencilStateCreateInfo * pDepthStencilState; const VkPipelineColorBlendStateCreateInfo * pColorBlendState; const VkPipelineDynamicStateCreateInfo * pDynamicState; VkPipelineLayout layout; VkRenderPass renderPass; uint32_t subpass; VkPipeline basePipelineHandle; int32_t basePipelineIndex; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkGraphicsPipelineCreateInfo.BufferAn array ofVkGraphicsPipelineCreateInfostructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 Modifier and Type Method and Description longbasePipelineHandle()Returns the value of thebasePipelineHandlefield.VkGraphicsPipelineCreateInfobasePipelineHandle(long value)Sets the specified value to thebasePipelineHandlefield.intbasePipelineIndex()Returns the value of thebasePipelineIndexfield.VkGraphicsPipelineCreateInfobasePipelineIndex(int value)Sets the specified value to thebasePipelineIndexfield.static VkGraphicsPipelineCreateInfocalloc()Returns a newVkGraphicsPipelineCreateInfoinstance allocated withmemCalloc.static VkGraphicsPipelineCreateInfo.Buffercalloc(int capacity)Returns a newVkGraphicsPipelineCreateInfo.Bufferinstance allocated withmemCalloc.static VkGraphicsPipelineCreateInfocallocStack()Returns a newVkGraphicsPipelineCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkGraphicsPipelineCreateInfo.BuffercallocStack(int capacity)Returns a newVkGraphicsPipelineCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkGraphicsPipelineCreateInfo.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkGraphicsPipelineCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGraphicsPipelineCreateInfocallocStack(MemoryStack stack)Returns a newVkGraphicsPipelineCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 ornullif the address isNULL.static VkGraphicsPipelineCreateInfo.Buffercreate(long address, int capacity)Create aVkGraphicsPipelineCreateInfo.Bufferinstance at the specified memory.intflags()Returns the value of theflagsfield.VkGraphicsPipelineCreateInfoflags(int value)Sets the specified value to theflagsfield.longlayout()Returns the value of thelayoutfield.VkGraphicsPipelineCreateInfolayout(long value)Sets the specified value to thelayoutfield.static VkGraphicsPipelineCreateInfomalloc()Returns a newVkGraphicsPipelineCreateInfoinstance allocated withmemAlloc.static VkGraphicsPipelineCreateInfo.Buffermalloc(int capacity)Returns a newVkGraphicsPipelineCreateInfo.Bufferinstance allocated withmemAlloc.static VkGraphicsPipelineCreateInfomallocStack()Returns a newVkGraphicsPipelineCreateInfoinstance allocated on the thread-localMemoryStack.static VkGraphicsPipelineCreateInfo.BuffermallocStack(int capacity)Returns a newVkGraphicsPipelineCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkGraphicsPipelineCreateInfo.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkGraphicsPipelineCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkGraphicsPipelineCreateInfomallocStack(MemoryStack stack)Returns a newVkGraphicsPipelineCreateInfoinstance allocated on the specifiedMemoryStack.VkGraphicsPipelineCreateInfonset(long struct)Unsafe version ofset.VkPipelineColorBlendStateCreateInfopColorBlendState()Returns aVkPipelineColorBlendStateCreateInfoview of the struct pointed to by thepColorBlendStatefield.VkGraphicsPipelineCreateInfopColorBlendState(VkPipelineColorBlendStateCreateInfo value)Sets the address of the specifiedVkPipelineColorBlendStateCreateInfoto thepColorBlendStatefield.VkPipelineDepthStencilStateCreateInfopDepthStencilState()Returns aVkPipelineDepthStencilStateCreateInfoview of the struct pointed to by thepDepthStencilStatefield.VkGraphicsPipelineCreateInfopDepthStencilState(VkPipelineDepthStencilStateCreateInfo value)Sets the address of the specifiedVkPipelineDepthStencilStateCreateInfoto thepDepthStencilStatefield.VkPipelineDynamicStateCreateInfopDynamicState()Returns aVkPipelineDynamicStateCreateInfoview of the struct pointed to by thepDynamicStatefield.VkGraphicsPipelineCreateInfopDynamicState(VkPipelineDynamicStateCreateInfo value)Sets the address of the specifiedVkPipelineDynamicStateCreateInfoto thepDynamicStatefield.VkPipelineInputAssemblyStateCreateInfopInputAssemblyState()Returns aVkPipelineInputAssemblyStateCreateInfoview of the struct pointed to by thepInputAssemblyStatefield.VkGraphicsPipelineCreateInfopInputAssemblyState(VkPipelineInputAssemblyStateCreateInfo value)Sets the address of the specifiedVkPipelineInputAssemblyStateCreateInfoto thepInputAssemblyStatefield.VkPipelineMultisampleStateCreateInfopMultisampleState()Returns aVkPipelineMultisampleStateCreateInfoview of the struct pointed to by thepMultisampleStatefield.VkGraphicsPipelineCreateInfopMultisampleState(VkPipelineMultisampleStateCreateInfo value)Sets the address of the specifiedVkPipelineMultisampleStateCreateInfoto thepMultisampleStatefield.longpNext()Returns the value of thepNextfield.VkGraphicsPipelineCreateInfopNext(long value)Sets the specified value to thepNextfield.VkPipelineRasterizationStateCreateInfopRasterizationState()Returns aVkPipelineRasterizationStateCreateInfoview of the struct pointed to by thepRasterizationStatefield.VkGraphicsPipelineCreateInfopRasterizationState(VkPipelineRasterizationStateCreateInfo value)Sets the address of the specifiedVkPipelineRasterizationStateCreateInfoto thepRasterizationStatefield.VkPipelineShaderStageCreateInfo.BufferpStages()Returns aVkPipelineShaderStageCreateInfo.Bufferview of the struct array pointed to by thepStagesfield.VkGraphicsPipelineCreateInfopStages(VkPipelineShaderStageCreateInfo.Buffer value)Sets the address of the specifiedVkPipelineShaderStageCreateInfo.Bufferto thepStagesfield.VkPipelineTessellationStateCreateInfopTessellationState()Returns aVkPipelineTessellationStateCreateInfoview of the struct pointed to by thepTessellationStatefield.VkGraphicsPipelineCreateInfopTessellationState(VkPipelineTessellationStateCreateInfo value)Sets the address of the specifiedVkPipelineTessellationStateCreateInfoto thepTessellationStatefield.VkPipelineVertexInputStateCreateInfopVertexInputState()Returns aVkPipelineVertexInputStateCreateInfoview of the struct pointed to by thepVertexInputStatefield.VkGraphicsPipelineCreateInfopVertexInputState(VkPipelineVertexInputStateCreateInfo value)Sets the address of the specifiedVkPipelineVertexInputStateCreateInfoto thepVertexInputStatefield.VkPipelineViewportStateCreateInfopViewportState()Returns aVkPipelineViewportStateCreateInfoview of the struct pointed to by thepViewportStatefield.VkGraphicsPipelineCreateInfopViewportState(VkPipelineViewportStateCreateInfo value)Sets the address of the specifiedVkPipelineViewportStateCreateInfoto thepViewportStatefield.longrenderPass()Returns the value of therenderPassfield.VkGraphicsPipelineCreateInforenderPass(long value)Sets the specified value to therenderPassfield.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()Returns thesizeof(struct).intstageCount()Returns the value of thestageCountfield.intsType()Returns the value of thesTypefield.VkGraphicsPipelineCreateInfosType(int value)Sets the specified value to thesTypefield.intsubpass()Returns the value of thesubpassfield.VkGraphicsPipelineCreateInfosubpass(int value)Sets the specified value to thesubpassfield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)CallsVkGraphicsPipelineCreateInfo.validate(long)for each struct contained in the specified struct array.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:StructReturns thesizeof(struct).
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
stageCount
public int stageCount()
Returns the value of thestageCountfield.
-
pStages
public VkPipelineShaderStageCreateInfo.Buffer pStages()
Returns aVkPipelineShaderStageCreateInfo.Bufferview of the struct array pointed to by thepStagesfield.
-
pVertexInputState
public VkPipelineVertexInputStateCreateInfo pVertexInputState()
Returns aVkPipelineVertexInputStateCreateInfoview of the struct pointed to by thepVertexInputStatefield.
-
pInputAssemblyState
public VkPipelineInputAssemblyStateCreateInfo pInputAssemblyState()
Returns aVkPipelineInputAssemblyStateCreateInfoview of the struct pointed to by thepInputAssemblyStatefield.
-
pTessellationState
public VkPipelineTessellationStateCreateInfo pTessellationState()
Returns aVkPipelineTessellationStateCreateInfoview of the struct pointed to by thepTessellationStatefield.
-
pViewportState
public VkPipelineViewportStateCreateInfo pViewportState()
Returns aVkPipelineViewportStateCreateInfoview of the struct pointed to by thepViewportStatefield.
-
pRasterizationState
public VkPipelineRasterizationStateCreateInfo pRasterizationState()
Returns aVkPipelineRasterizationStateCreateInfoview of the struct pointed to by thepRasterizationStatefield.
-
pMultisampleState
public VkPipelineMultisampleStateCreateInfo pMultisampleState()
Returns aVkPipelineMultisampleStateCreateInfoview of the struct pointed to by thepMultisampleStatefield.
-
pDepthStencilState
public VkPipelineDepthStencilStateCreateInfo pDepthStencilState()
Returns aVkPipelineDepthStencilStateCreateInfoview of the struct pointed to by thepDepthStencilStatefield.
-
pColorBlendState
public VkPipelineColorBlendStateCreateInfo pColorBlendState()
Returns aVkPipelineColorBlendStateCreateInfoview of the struct pointed to by thepColorBlendStatefield.
-
pDynamicState
public VkPipelineDynamicStateCreateInfo pDynamicState()
Returns aVkPipelineDynamicStateCreateInfoview of the struct pointed to by thepDynamicStatefield.
-
layout
public long layout()
Returns the value of thelayoutfield.
-
renderPass
public long renderPass()
Returns the value of therenderPassfield.
-
subpass
public int subpass()
Returns the value of thesubpassfield.
-
basePipelineHandle
public long basePipelineHandle()
Returns the value of thebasePipelineHandlefield.
-
basePipelineIndex
public int basePipelineIndex()
Returns the value of thebasePipelineIndexfield.
-
sType
public VkGraphicsPipelineCreateInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkGraphicsPipelineCreateInfo pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkGraphicsPipelineCreateInfo flags(int value)
Sets the specified value to theflagsfield.
-
pStages
public VkGraphicsPipelineCreateInfo pStages(VkPipelineShaderStageCreateInfo.Buffer value)
Sets the address of the specifiedVkPipelineShaderStageCreateInfo.Bufferto thepStagesfield.
-
pVertexInputState
public VkGraphicsPipelineCreateInfo pVertexInputState(VkPipelineVertexInputStateCreateInfo value)
Sets the address of the specifiedVkPipelineVertexInputStateCreateInfoto thepVertexInputStatefield.
-
pInputAssemblyState
public VkGraphicsPipelineCreateInfo pInputAssemblyState(VkPipelineInputAssemblyStateCreateInfo value)
Sets the address of the specifiedVkPipelineInputAssemblyStateCreateInfoto thepInputAssemblyStatefield.
-
pTessellationState
public VkGraphicsPipelineCreateInfo pTessellationState(VkPipelineTessellationStateCreateInfo value)
Sets the address of the specifiedVkPipelineTessellationStateCreateInfoto thepTessellationStatefield.
-
pViewportState
public VkGraphicsPipelineCreateInfo pViewportState(VkPipelineViewportStateCreateInfo value)
Sets the address of the specifiedVkPipelineViewportStateCreateInfoto thepViewportStatefield.
-
pRasterizationState
public VkGraphicsPipelineCreateInfo pRasterizationState(VkPipelineRasterizationStateCreateInfo value)
Sets the address of the specifiedVkPipelineRasterizationStateCreateInfoto thepRasterizationStatefield.
-
pMultisampleState
public VkGraphicsPipelineCreateInfo pMultisampleState(VkPipelineMultisampleStateCreateInfo value)
Sets the address of the specifiedVkPipelineMultisampleStateCreateInfoto thepMultisampleStatefield.
-
pDepthStencilState
public VkGraphicsPipelineCreateInfo pDepthStencilState(VkPipelineDepthStencilStateCreateInfo value)
Sets the address of the specifiedVkPipelineDepthStencilStateCreateInfoto thepDepthStencilStatefield.
-
pColorBlendState
public VkGraphicsPipelineCreateInfo pColorBlendState(VkPipelineColorBlendStateCreateInfo value)
Sets the address of the specifiedVkPipelineColorBlendStateCreateInfoto thepColorBlendStatefield.
-
pDynamicState
public VkGraphicsPipelineCreateInfo pDynamicState(VkPipelineDynamicStateCreateInfo value)
Sets the address of the specifiedVkPipelineDynamicStateCreateInfoto thepDynamicStatefield.
-
layout
public VkGraphicsPipelineCreateInfo layout(long value)
Sets the specified value to thelayoutfield.
-
renderPass
public VkGraphicsPipelineCreateInfo renderPass(long value)
Sets the specified value to therenderPassfield.
-
subpass
public VkGraphicsPipelineCreateInfo subpass(int value)
Sets the specified value to thesubpassfield.
-
basePipelineHandle
public VkGraphicsPipelineCreateInfo basePipelineHandle(long value)
Sets the specified value to thebasePipelineHandlefield.
-
basePipelineIndex
public VkGraphicsPipelineCreateInfo basePipelineIndex(int value)
Sets the specified value to thebasePipelineIndexfield.
-
set
public 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.
-
nset
public VkGraphicsPipelineCreateInfo nset(long struct)
Unsafe version ofset.
-
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 ornullif the address isNULL.
-
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
-
mallocStack
public static VkGraphicsPipelineCreateInfo mallocStack()
Returns a newVkGraphicsPipelineCreateInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkGraphicsPipelineCreateInfo callocStack()
Returns a newVkGraphicsPipelineCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkGraphicsPipelineCreateInfo mallocStack(MemoryStack stack)
Returns a newVkGraphicsPipelineCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkGraphicsPipelineCreateInfo callocStack(MemoryStack stack)
Returns a newVkGraphicsPipelineCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkGraphicsPipelineCreateInfo.Buffer mallocStack(int capacity)
Returns a newVkGraphicsPipelineCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkGraphicsPipelineCreateInfo.Buffer callocStack(int capacity)
Returns a newVkGraphicsPipelineCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkGraphicsPipelineCreateInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkGraphicsPipelineCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkGraphicsPipelineCreateInfo.Buffer callocStack(int capacity, 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
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)CallsVkGraphicsPipelineCreateInfo.validate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-