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
sType
must beSTRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO
pNext
must beNULL
flags
must be a valid combination ofVkPipelineCreateFlagBits
valuespStages
must be a pointer to an array ofstageCount
validVkPipelineShaderStageCreateInfo
structurespVertexInputState
must be a pointer to a validVkPipelineVertexInputStateCreateInfo
structurepInputAssemblyState
must be a pointer to a validVkPipelineInputAssemblyStateCreateInfo
structurepRasterizationState
must be a pointer to a validVkPipelineRasterizationStateCreateInfo
structure- If
pDynamicState
is notNULL
,pDynamicState
must be a pointer to a validVkPipelineDynamicStateCreateInfo
structure layout
must be a validVkPipelineLayout
handlerenderPass
must be a validVkRenderPass
handlestageCount
must be greater than 0- Each of
layout
,renderPass
andbasePipelineHandle
that are valid handles must have been created, allocated or retrieved from the sameVkDevice
- If
flags
contains thePIPELINE_CREATE_DERIVATIVE_BIT
flag, andbasePipelineIndex
is not-1
,basePipelineHandle
must beNULL_HANDLE
- If
flags
contains thePIPELINE_CREATE_DERIVATIVE_BIT
flag, andbasePipelineIndex
is not-1
, it must be a valid index into the calling command'spCreateInfos
parameter - If
flags
contains thePIPELINE_CREATE_DERIVATIVE_BIT
flag, andbasePipelineHandle
is notNULL_HANDLE
,basePipelineIndex
must be-1
- If
flags
contains thePIPELINE_CREATE_DERIVATIVE_BIT
flag, andbasePipelineHandle
is notNULL_HANDLE
,basePipelineHandle
must be a validVkPipeline
handle - If
flags
contains thePIPELINE_CREATE_DERIVATIVE_BIT
flag, andbasePipelineHandle
is notNULL_HANDLE
, it must be a valid handle to a graphicsVkPipeline
- The
stage
member of each element ofpStages
must be unique - The
stage
member of one element ofpStages
must beSHADER_STAGE_VERTEX_BIT
- The
stage
member of any given element ofpStages
must not beSHADER_STAGE_COMPUTE_BIT
- If
pStages
includes a tessellation control shader stage, it must include a tessellation evaluation shader stage - If
pStages
includes a tessellation evaluation shader stage, it must include a tessellation control shader stage - If
pStages
includes a tessellation control shader stage and a tessellation evaluation shader stage,pTessellationState
must not beNULL
- If
pStages
includes both a tessellation control shader stage and a tessellation evaluation shader stage, the shader code of at least one must contain anOpExecutionMode
instruction that specifies the type of subdivision in the pipeline - If
pStages
includes both a tessellation control shader stage and a tessellation evaluation shader stage, and the shader code of both contain anOpExecutionMode
instruction that specifies the type of subdivision in the pipeline, they must both specify the same subdivision mode - If
pStages
includes both a tessellation control shader stage and a tessellation evaluation shader stage, the shader code of at least one must contain anOpExecutionMode
instruction that specifies the output patch size in the pipeline - If
pStages
includes both a tessellation control shader stage and a tessellation evaluation shader stage, and the shader code of both contain anOpExecutionMode
instruction that specifies the out patch size in the pipeline, they must both specify the same patch size - If
pStages
includes tessellation shader stages, thetopology
member ofpInputAssembly
must bePRIMITIVE_TOPOLOGY_PATCH_LIST
- If
pStages
includes a geometry shader stage, and doesn't include any tessellation shader stages, its shader code must contain anOpExecutionMode
instruction that specifies an input primitive type that is compatible with the primitive topology specified inpInputAssembly
- If
pStages
includes a geometry shader stage, and also includes tessellation shader stages, its shader code must contain anOpExecutionMode
instruction that specifies an input primitive type that is compatible with the primitive topology that is output by the tessellation stages - If
pStages
includes 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
pStages
includes a fragment shader stage, its shader code must not read from any input attachment that is defined asATTACHMENT_UNUSED
insubpass
- 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
subpass
uses a depth/stencil attachment inrenderpass
that has a layout ofIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL
in theVkAttachmentReference
defined bysubpass
, andpDepthStencilState
is notNULL
, thedepthWriteEnable
member ofpDepthStencilState
must beFALSE
- If
subpass
uses a depth/stencil attachment inrenderpass
that has a layout ofIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL
in theVkAttachmentReference
defined bysubpass
, andpDepthStencilState
is notNULL
, thefailOp
,passOp
anddepthFailOp
members of each of thefront
andback
members ofpDepthStencilState
must beSTENCIL_OP_KEEP
- If
pColorBlendState
is notNULL
, theblendEnable
member of each element of thepAttachment
member ofpColorBlendState
must beFALSE
if theformat
of the attachment referred to insubpass
ofrenderPass
does not support color blend operations, as specified by theFORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
flag inVkFormatProperties
::linearTilingFeatures
orVkFormatProperties
::optimalTilingFeatures
returned byGetPhysicalDeviceFormatProperties
- If
pColorBlendState
is notNULL
, TheattachmentCount
member ofpColorBlendState
must be equal to thecolorAttachmentCount
used to createsubpass
- If no element of the
pDynamicStates
member ofpDynamicState
isDYNAMIC_STATE_VIEWPORT
, thepViewports
member ofpViewportState
must be a pointer to an array ofpViewportState
->viewportCountVkViewport
structures - If no element of the
pDynamicStates
member ofpDynamicState
isDYNAMIC_STATE_SCISSOR
, thepScissors
member ofpViewportState
must be a pointer to an array ofpViewportState
->scissorCountVkRect2D
structures - If the wide lines feature is not enabled, and no element of the
pDynamicStates
member ofpDynamicState
isDYNAMIC_STATE_LINE_WIDTH
, thelineWidth
member ofpRasterizationState
must be1.0
- If the
rasterizerDiscardEnable
member ofpRasterizationState
isFALSE
,pViewportState
must be a pointer to a validVkPipelineViewportStateCreateInfo
structure - If the
rasterizerDiscardEnable
member ofpRasterizationState
isFALSE
,pMultisampleState
must be a pointer to a validVkPipelineMultisampleStateCreateInfo
structure - If the
rasterizerDiscardEnable
member ofpRasterizationState
isFALSE
, andsubpass
uses a depth/stencil attachment,pDepthStencilState
must be a pointer to a validVkPipelineDepthStencilStateCreateInfo
structure - If the
rasterizerDiscardEnable
member ofpRasterizationState
isFALSE
, andsubpass
uses color attachments,pColorBlendState
must be a pointer to a validVkPipelineColorBlendStateCreateInfo
structure - If the depth bias clamping feature is not enabled, no element of the
pDynamicStates
member ofpDynamicState
isDYNAMIC_STATE_DEPTH_BIAS
, and thedepthBiasEnable
member ofpDepthStencil
isTRUE
, thedepthBiasClamp
member ofpDepthStencil
must be0.0
- If no element of the
pDynamicStates
member ofpDynamicState
isDYNAMIC_STATE_DEPTH_BOUNDS
, and thedepthBoundsTestEnable
member ofpDepthStencil
isTRUE
, theminDepthBounds
andmaxDepthBounds
members ofpDepthStencil
must be between0.0
and1.0
, inclusive layout
must be consistent with all shaders specified inpStages
- If
subpass
uses color and/or depth/stencil attachments, then therasterizationSamples
member ofpMultisampleState
must be the same as the sample count for those subpass attachments - If
subpass
does not use any color and/or depth/stencil attachments, then therasterizationSamples
member ofpMultisampleState
must follow the rules for a zero-attachment subpass subpass
must be a valid subpass withinrenderpass
Member documentation
sType
– the type of this structure. Must be:STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO
pNext
– reserved for use by extensionsflags
– a bitfield ofVkPipelineCreateFlagBits
controlling how the pipeline will be generated. One or more of:PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT
PIPELINE_CREATE_DERIVATIVE_BIT
PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT
stageCount
– the number of entries in thepStages
arraypStages
– an array of sizestageCount
structures of typeVkPipelineShaderStageCreateInfo
describing the set of the shader stages to be included in the graphics pipelinepVertexInputState
– a pointer to an instance of theVkPipelineVertexInputStateCreateInfo
structurepInputAssemblyState
– a pointer to an instance of theVkPipelineInputAssemblyStateCreateInfo
structure which determines input assembly behaviorpTessellationState
– a pointer to an instance of theVkPipelineTessellationStateCreateInfo
structure, orNULL
if the pipeline does not include a tessellation control shader stage and tessellation evaluation shader stagepViewportState
– a pointer to an instance of theVkPipelineViewportStateCreateInfo
structure, orNULL
if the pipeline has rasterization disabledpRasterizationState
– a pointer to an instance of theVkPipelineRasterizationStateCreateInfo
structurepMultisampleState
– a pointer to an instance of theVkPipelineMultisampleStateCreateInfo
, orNULL
if the pipeline has rasterization disabledpDepthStencilState
– a pointer to an instance of theVkPipelineDepthStencilStateCreateInfo
structure, orNULL
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 attachmentpColorBlendState
– a pointer to an instance of theVkPipelineColorBlendStateCreateInfo
structure, orNULL
if 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 toVkPipelineDynamicStateCreateInfo
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
– 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 inrenderPass
where this pipeline will be usedbasePipelineHandle
– a pipeline to derive frombasePipelineIndex
– an index into thepCreateInfos
parameter 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 class
VkGraphicsPipelineCreateInfo.Buffer
An array ofVkGraphicsPipelineCreateInfo
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The 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 aVkGraphicsPipelineCreateInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description long
basePipelineHandle()
Returns the value of thebasePipelineHandle
field.VkGraphicsPipelineCreateInfo
basePipelineHandle(long value)
Sets the specified value to thebasePipelineHandle
field.int
basePipelineIndex()
Returns the value of thebasePipelineIndex
field.VkGraphicsPipelineCreateInfo
basePipelineIndex(int value)
Sets the specified value to thebasePipelineIndex
field.static VkGraphicsPipelineCreateInfo
calloc()
Returns a newVkGraphicsPipelineCreateInfo
instance allocated withmemCalloc
.static VkGraphicsPipelineCreateInfo.Buffer
calloc(int capacity)
Returns a newVkGraphicsPipelineCreateInfo.Buffer
instance allocated withmemCalloc
.static VkGraphicsPipelineCreateInfo
callocStack()
Returns a newVkGraphicsPipelineCreateInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkGraphicsPipelineCreateInfo.Buffer
callocStack(int capacity)
Returns a newVkGraphicsPipelineCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkGraphicsPipelineCreateInfo.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newVkGraphicsPipelineCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkGraphicsPipelineCreateInfo
callocStack(MemoryStack stack)
Returns a newVkGraphicsPipelineCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkGraphicsPipelineCreateInfo
create()
Returns a newVkGraphicsPipelineCreateInfo
instance allocated withBufferUtils
.static VkGraphicsPipelineCreateInfo.Buffer
create(int capacity)
Returns a newVkGraphicsPipelineCreateInfo.Buffer
instance allocated withBufferUtils
.static VkGraphicsPipelineCreateInfo
create(long address)
Returns a newVkGraphicsPipelineCreateInfo
instance for the specified memory address ornull
if the address isNULL
.static VkGraphicsPipelineCreateInfo.Buffer
create(long address, int capacity)
Create aVkGraphicsPipelineCreateInfo.Buffer
instance at the specified memory.int
flags()
Returns the value of theflags
field.VkGraphicsPipelineCreateInfo
flags(int value)
Sets the specified value to theflags
field.long
layout()
Returns the value of thelayout
field.VkGraphicsPipelineCreateInfo
layout(long value)
Sets the specified value to thelayout
field.static VkGraphicsPipelineCreateInfo
malloc()
Returns a newVkGraphicsPipelineCreateInfo
instance allocated withmemAlloc
.static VkGraphicsPipelineCreateInfo.Buffer
malloc(int capacity)
Returns a newVkGraphicsPipelineCreateInfo.Buffer
instance allocated withmemAlloc
.static VkGraphicsPipelineCreateInfo
mallocStack()
Returns a newVkGraphicsPipelineCreateInfo
instance allocated on the thread-localMemoryStack
.static VkGraphicsPipelineCreateInfo.Buffer
mallocStack(int capacity)
Returns a newVkGraphicsPipelineCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
.static VkGraphicsPipelineCreateInfo.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newVkGraphicsPipelineCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkGraphicsPipelineCreateInfo
mallocStack(MemoryStack stack)
Returns a newVkGraphicsPipelineCreateInfo
instance allocated on the specifiedMemoryStack
.VkGraphicsPipelineCreateInfo
nset(long struct)
Unsafe version ofset
.VkPipelineColorBlendStateCreateInfo
pColorBlendState()
Returns aVkPipelineColorBlendStateCreateInfo
view of the struct pointed to by thepColorBlendState
field.VkGraphicsPipelineCreateInfo
pColorBlendState(VkPipelineColorBlendStateCreateInfo value)
Sets the address of the specifiedVkPipelineColorBlendStateCreateInfo
to thepColorBlendState
field.VkPipelineDepthStencilStateCreateInfo
pDepthStencilState()
Returns aVkPipelineDepthStencilStateCreateInfo
view of the struct pointed to by thepDepthStencilState
field.VkGraphicsPipelineCreateInfo
pDepthStencilState(VkPipelineDepthStencilStateCreateInfo value)
Sets the address of the specifiedVkPipelineDepthStencilStateCreateInfo
to thepDepthStencilState
field.VkPipelineDynamicStateCreateInfo
pDynamicState()
Returns aVkPipelineDynamicStateCreateInfo
view of the struct pointed to by thepDynamicState
field.VkGraphicsPipelineCreateInfo
pDynamicState(VkPipelineDynamicStateCreateInfo value)
Sets the address of the specifiedVkPipelineDynamicStateCreateInfo
to thepDynamicState
field.VkPipelineInputAssemblyStateCreateInfo
pInputAssemblyState()
Returns aVkPipelineInputAssemblyStateCreateInfo
view of the struct pointed to by thepInputAssemblyState
field.VkGraphicsPipelineCreateInfo
pInputAssemblyState(VkPipelineInputAssemblyStateCreateInfo value)
Sets the address of the specifiedVkPipelineInputAssemblyStateCreateInfo
to thepInputAssemblyState
field.VkPipelineMultisampleStateCreateInfo
pMultisampleState()
Returns aVkPipelineMultisampleStateCreateInfo
view of the struct pointed to by thepMultisampleState
field.VkGraphicsPipelineCreateInfo
pMultisampleState(VkPipelineMultisampleStateCreateInfo value)
Sets the address of the specifiedVkPipelineMultisampleStateCreateInfo
to thepMultisampleState
field.long
pNext()
Returns the value of thepNext
field.VkGraphicsPipelineCreateInfo
pNext(long value)
Sets the specified value to thepNext
field.VkPipelineRasterizationStateCreateInfo
pRasterizationState()
Returns aVkPipelineRasterizationStateCreateInfo
view of the struct pointed to by thepRasterizationState
field.VkGraphicsPipelineCreateInfo
pRasterizationState(VkPipelineRasterizationStateCreateInfo value)
Sets the address of the specifiedVkPipelineRasterizationStateCreateInfo
to thepRasterizationState
field.VkPipelineShaderStageCreateInfo.Buffer
pStages()
Returns aVkPipelineShaderStageCreateInfo.Buffer
view of the struct array pointed to by thepStages
field.VkGraphicsPipelineCreateInfo
pStages(VkPipelineShaderStageCreateInfo.Buffer value)
Sets the address of the specifiedVkPipelineShaderStageCreateInfo.Buffer
to thepStages
field.VkPipelineTessellationStateCreateInfo
pTessellationState()
Returns aVkPipelineTessellationStateCreateInfo
view of the struct pointed to by thepTessellationState
field.VkGraphicsPipelineCreateInfo
pTessellationState(VkPipelineTessellationStateCreateInfo value)
Sets the address of the specifiedVkPipelineTessellationStateCreateInfo
to thepTessellationState
field.VkPipelineVertexInputStateCreateInfo
pVertexInputState()
Returns aVkPipelineVertexInputStateCreateInfo
view of the struct pointed to by thepVertexInputState
field.VkGraphicsPipelineCreateInfo
pVertexInputState(VkPipelineVertexInputStateCreateInfo value)
Sets the address of the specifiedVkPipelineVertexInputStateCreateInfo
to thepVertexInputState
field.VkPipelineViewportStateCreateInfo
pViewportState()
Returns aVkPipelineViewportStateCreateInfo
view of the struct pointed to by thepViewportState
field.VkGraphicsPipelineCreateInfo
pViewportState(VkPipelineViewportStateCreateInfo value)
Sets the address of the specifiedVkPipelineViewportStateCreateInfo
to thepViewportState
field.long
renderPass()
Returns the value of therenderPass
field.VkGraphicsPipelineCreateInfo
renderPass(long value)
Sets the specified value to therenderPass
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()
Returns thesizeof(struct)
.int
stageCount()
Returns the value of thestageCount
field.int
sType()
Returns the value of thesType
field.VkGraphicsPipelineCreateInfo
sType(int value)
Sets the specified value to thesType
field.int
subpass()
Returns the value of thesubpass
field.VkGraphicsPipelineCreateInfo
subpass(int value)
Sets the specified value to thesubpass
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(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 aVkGraphicsPipelineCreateInfo
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
Description copied from class:Struct
Returns thesizeof(struct)
.
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
stageCount
public int stageCount()
Returns the value of thestageCount
field.
-
pStages
public VkPipelineShaderStageCreateInfo.Buffer pStages()
Returns aVkPipelineShaderStageCreateInfo.Buffer
view of the struct array pointed to by thepStages
field.
-
pVertexInputState
public VkPipelineVertexInputStateCreateInfo pVertexInputState()
Returns aVkPipelineVertexInputStateCreateInfo
view of the struct pointed to by thepVertexInputState
field.
-
pInputAssemblyState
public VkPipelineInputAssemblyStateCreateInfo pInputAssemblyState()
Returns aVkPipelineInputAssemblyStateCreateInfo
view of the struct pointed to by thepInputAssemblyState
field.
-
pTessellationState
public VkPipelineTessellationStateCreateInfo pTessellationState()
Returns aVkPipelineTessellationStateCreateInfo
view of the struct pointed to by thepTessellationState
field.
-
pViewportState
public VkPipelineViewportStateCreateInfo pViewportState()
Returns aVkPipelineViewportStateCreateInfo
view of the struct pointed to by thepViewportState
field.
-
pRasterizationState
public VkPipelineRasterizationStateCreateInfo pRasterizationState()
Returns aVkPipelineRasterizationStateCreateInfo
view of the struct pointed to by thepRasterizationState
field.
-
pMultisampleState
public VkPipelineMultisampleStateCreateInfo pMultisampleState()
Returns aVkPipelineMultisampleStateCreateInfo
view of the struct pointed to by thepMultisampleState
field.
-
pDepthStencilState
public VkPipelineDepthStencilStateCreateInfo pDepthStencilState()
Returns aVkPipelineDepthStencilStateCreateInfo
view of the struct pointed to by thepDepthStencilState
field.
-
pColorBlendState
public VkPipelineColorBlendStateCreateInfo pColorBlendState()
Returns aVkPipelineColorBlendStateCreateInfo
view of the struct pointed to by thepColorBlendState
field.
-
pDynamicState
public VkPipelineDynamicStateCreateInfo pDynamicState()
Returns aVkPipelineDynamicStateCreateInfo
view of the struct pointed to by thepDynamicState
field.
-
layout
public long layout()
Returns the value of thelayout
field.
-
renderPass
public long renderPass()
Returns the value of therenderPass
field.
-
subpass
public int subpass()
Returns the value of thesubpass
field.
-
basePipelineHandle
public long basePipelineHandle()
Returns the value of thebasePipelineHandle
field.
-
basePipelineIndex
public int basePipelineIndex()
Returns the value of thebasePipelineIndex
field.
-
sType
public VkGraphicsPipelineCreateInfo sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkGraphicsPipelineCreateInfo pNext(long value)
Sets the specified value to thepNext
field.
-
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.Buffer
to thepStages
field.
-
pVertexInputState
public VkGraphicsPipelineCreateInfo pVertexInputState(VkPipelineVertexInputStateCreateInfo value)
Sets the address of the specifiedVkPipelineVertexInputStateCreateInfo
to thepVertexInputState
field.
-
pInputAssemblyState
public VkGraphicsPipelineCreateInfo pInputAssemblyState(VkPipelineInputAssemblyStateCreateInfo value)
Sets the address of the specifiedVkPipelineInputAssemblyStateCreateInfo
to thepInputAssemblyState
field.
-
pTessellationState
public VkGraphicsPipelineCreateInfo pTessellationState(VkPipelineTessellationStateCreateInfo value)
Sets the address of the specifiedVkPipelineTessellationStateCreateInfo
to thepTessellationState
field.
-
pViewportState
public VkGraphicsPipelineCreateInfo pViewportState(VkPipelineViewportStateCreateInfo value)
Sets the address of the specifiedVkPipelineViewportStateCreateInfo
to thepViewportState
field.
-
pRasterizationState
public VkGraphicsPipelineCreateInfo pRasterizationState(VkPipelineRasterizationStateCreateInfo value)
Sets the address of the specifiedVkPipelineRasterizationStateCreateInfo
to thepRasterizationState
field.
-
pMultisampleState
public VkGraphicsPipelineCreateInfo pMultisampleState(VkPipelineMultisampleStateCreateInfo value)
Sets the address of the specifiedVkPipelineMultisampleStateCreateInfo
to thepMultisampleState
field.
-
pDepthStencilState
public VkGraphicsPipelineCreateInfo pDepthStencilState(VkPipelineDepthStencilStateCreateInfo value)
Sets the address of the specifiedVkPipelineDepthStencilStateCreateInfo
to thepDepthStencilState
field.
-
pColorBlendState
public VkGraphicsPipelineCreateInfo pColorBlendState(VkPipelineColorBlendStateCreateInfo value)
Sets the address of the specifiedVkPipelineColorBlendStateCreateInfo
to thepColorBlendState
field.
-
pDynamicState
public VkGraphicsPipelineCreateInfo pDynamicState(VkPipelineDynamicStateCreateInfo value)
Sets the address of the specifiedVkPipelineDynamicStateCreateInfo
to 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, 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 newVkGraphicsPipelineCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkGraphicsPipelineCreateInfo calloc()
Returns a newVkGraphicsPipelineCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkGraphicsPipelineCreateInfo create()
Returns a newVkGraphicsPipelineCreateInfo
instance allocated withBufferUtils
.
-
create
public static VkGraphicsPipelineCreateInfo create(long address)
Returns a newVkGraphicsPipelineCreateInfo
instance for the specified memory address ornull
if the address isNULL
.
-
malloc
public static VkGraphicsPipelineCreateInfo.Buffer malloc(int capacity)
Returns a newVkGraphicsPipelineCreateInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkGraphicsPipelineCreateInfo.Buffer calloc(int capacity)
Returns a newVkGraphicsPipelineCreateInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkGraphicsPipelineCreateInfo.Buffer create(int capacity)
Returns a newVkGraphicsPipelineCreateInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkGraphicsPipelineCreateInfo.Buffer create(long address, int capacity)
Create aVkGraphicsPipelineCreateInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static VkGraphicsPipelineCreateInfo mallocStack()
Returns a newVkGraphicsPipelineCreateInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkGraphicsPipelineCreateInfo callocStack()
Returns a newVkGraphicsPipelineCreateInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkGraphicsPipelineCreateInfo mallocStack(MemoryStack stack)
Returns a newVkGraphicsPipelineCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkGraphicsPipelineCreateInfo callocStack(MemoryStack stack)
Returns a newVkGraphicsPipelineCreateInfo
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkGraphicsPipelineCreateInfo.Buffer callocStack(int capacity)
Returns a newVkGraphicsPipelineCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkGraphicsPipelineCreateInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkGraphicsPipelineCreateInfo.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
-
-