namespace Brutal.VulkanApi { /// /// VkGraphicsPipelineCreateInfo - Structure specifying parameters of a newly created graphics pipeline /// /// /// /// :refpage: VkGraphicsPipelineCreateInfo /// /// /// The VkGraphicsPipelineCreateInfo structure is defined as: /// /// /// // Provided by VK_VERSION_1_0 /// typedef 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; /// } VkGraphicsPipelineCreateInfo; /// /// [StructLayout(LayoutKind.Explicit, Size = 144)] public unsafe partial struct VkGraphicsPipelineCreateInfo() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.GraphicsPipelineCreateInfo; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Flags is a bitmask of VkPipelineCreateFlags specifying how the pipeline will be generated. /// [FieldOffset(16)] public VkPipelineCreateFlags Flags; /// /// StageCount is the number of entries in the pStages array. /// [FieldOffset(20)] public int StageCount; /// /// Stages is a pointer to an array of stageCount VkPipelineShaderStageCreateInfo structures describing the set of the shader stages to be included in the graphics pipeline. /// [FieldOffset(24)] public VkPipelineShaderStageCreateInfo* Stages; /// /// VertexInputState is a pointer to a VkPipelineVertexInputStateCreateInfo structure. /// [FieldOffset(32)] public VkPipelineVertexInputStateCreateInfo* VertexInputState; /// /// InputAssemblyState is a pointer to a VkPipelineInputAssemblyStateCreateInfo structure which determines input assembly behavior for vertex shading, as described in Drawing Commands^. /// [FieldOffset(40)] public VkPipelineInputAssemblyStateCreateInfo* InputAssemblyState; /// /// TessellationState is a pointer to a VkPipelineTessellationStateCreateInfo structure defining tessellation state used by tessellation shaders. /// [FieldOffset(48)] public VkPipelineTessellationStateCreateInfo* TessellationState; /// /// ViewportState is a pointer to a VkPipelineViewportStateCreateInfo structure defining viewport state used when rasterization is enabled. /// [FieldOffset(56)] public VkPipelineViewportStateCreateInfo* ViewportState; /// /// RasterizationState is a pointer to a VkPipelineRasterizationStateCreateInfo structure defining rasterization state. /// [FieldOffset(64)] public VkPipelineRasterizationStateCreateInfo* RasterizationState; /// /// MultisampleState is a pointer to a VkPipelineMultisampleStateCreateInfo structure defining multisample state used when rasterization is enabled. /// [FieldOffset(72)] public VkPipelineMultisampleStateCreateInfo* MultisampleState; /// /// DepthStencilState is a pointer to a VkPipelineDepthStencilStateCreateInfo structure defining depth/stencil state used when rasterization is enabled for depth or stencil attachments accessed during rendering. /// [FieldOffset(80)] public VkPipelineDepthStencilStateCreateInfo* DepthStencilState; /// /// ColorBlendState is a pointer to a VkPipelineColorBlendStateCreateInfo structure defining color blend state used when rasterization is enabled for any color attachments accessed during rendering. /// [FieldOffset(88)] public VkPipelineColorBlendStateCreateInfo* ColorBlendState; /// /// DynamicState is a pointer to a VkPipelineDynamicStateCreateInfo structure defining 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. /// [FieldOffset(96)] public VkPipelineDynamicStateCreateInfo* DynamicState; /// /// Layout is the description of binding locations used by both the pipeline and descriptor sets used with the pipeline. /// [FieldOffset(104)] public VkPipelineLayout Layout; /// /// RenderPass is a handle to a render pass object describing the environment in which the pipeline will be used. The pipeline must only be used with a render pass instance compatible with the one provided. See Render Pass Compatibility^ for more information. The implementation must not access this object outside of the duration of the command this structure is passed to. /// [FieldOffset(112)] public VkRenderPass RenderPass; /// /// Subpass is the index of the subpass in the render pass where this pipeline will be used. /// [FieldOffset(120)] public int Subpass; /// /// BasePipelineHandle is a pipeline to derive from. /// [FieldOffset(128)] public VkPipeline BasePipelineHandle; /// /// BasePipelineIndex is an index into the pCreateInfos parameter to use as a pipeline to derive from. /// [FieldOffset(136)] public int BasePipelineIndex; } }