Synced
ShaderPreviewContext.Constructor
Section titled “ShaderPreviewContext.Constructor”
- Creates a preview invocation from host-owned detached inputs.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Shaders
Declaration
Section titled “Declaration”public Inno.Editor.Shaders.ShaderPreviewContext.ShaderPreviewContext(Inno.Rendering.Runtime.RenderPersistentResourceId resourceId, Inno.Rendering.Assets.MaterialAsset material, Inno.Rendering.Assets.RenderShaderArtifact artifact, Inno.Rendering.Assets.ShaderDefinition definition, Inno.Core.Diagnostics.IDiagnosticReporter diagnostics, int pixelWidth, int pixelHeight)Parameters
Section titled “Parameters”Parameter resourceId: Isolated material publication and viewport resource identity.
Parameter material: Detached values with a current Shader reference; do not modify the reference.
Parameter artifact: Compiled candidate, never published as a canonical Shader.
Parameter definition: Detached contract captured by the candidate.
Parameter diagnostics: Preview-local reporter; errors must not contaminate project diagnostics.
Parameter pixelWidth: Positive target width.
Parameter pixelHeight: Positive target height.