Method LoadComputeShader
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
LoadComputeShader(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 LoadComputeShader(in ShaderID shaderID, ReadOnlySpan<byte> shaderBuffer)
Parameters
shaderID
ShaderIDshaderBuffer
ReadOnlySpan<byte>