Synced
ShaderPreviewContext.Constructor
Section titled “ShaderPreviewContext.Constructor”
- Creates a preview invocation from host-owned detached inputs.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.Shaders
Scope: Editor
Declaration
Section titled “Declaration”public InnoEditor.Shaders.ShaderPreviewContext.ShaderPreviewContext(InnoEngine.Rendering.RenderPersistentResourceId resourceId, InnoEngine.Rendering.MaterialAsset material, InnoEngine.Rendering.RenderShaderArtifact artifact, InnoEngine.Rendering.ShaderDefinition definition, InnoEngine.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.