Table of Contents

Method LoadPixelShader

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

LoadPixelShader(in ShaderID, ReadOnlySpan<byte>)

Loads the given shader by its unique ID. Loading the shader multiple times is ignored. When the shader is loaded it is also handed to the driver to JIT, if it hasn’t been already.

void LoadPixelShader(in ShaderID shaderID, ReadOnlySpan<byte> shaderBuffer)

Parameters

shaderID ShaderID
shaderBuffer ReadOnlySpan<byte>