Synced
RenderResourceProvider.CreateMaterialPass
Section titled “RenderResourceProvider.CreateMaterialPass”
- Creates a generation-scoped resolved material pass.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Runtime
Declaration
Section titled “Declaration”protected static Inno.Rendering.Runtime.RenderMaterialPass Inno.Rendering.Runtime.RenderResourceProvider.CreateMaterialPass(Inno.Rendering.Assets.ShaderPassDefinition definition, Inno.Rendering.GraphicsPipelineHandle graphicsPipeline, Inno.Rendering.ComputePipelineHandle computePipeline, System.Collections.Generic.IReadOnlyList<Inno.Rendering.Assets.ShaderPropertyDefinition> declaredBindings, Inno.Rendering.ShaderInterface activeInterface, System.Collections.Generic.IReadOnlyList<Inno.Rendering.Runtime.RenderResourceProvider.MaterialBinding> bindings)Parameters
Section titled “Parameters”Parameter definition: The selected shader pass definition.
Parameter graphicsPipeline: The graphics pipeline handle, or an invalid handle for compute.
Parameter computePipeline: The compute pipeline handle, or an invalid handle for rasterization.
Parameter declaredBindings: Complete shader binding declarations before backend optimization.
Parameter activeInterface: Exact bindings reflected by the compiled pass after backend optimization.
Parameter bindings: The complete material-owned binding snapshot.
Returns
Section titled “Returns”A resolved material pass ready for command binding.