Class ShadercCompiler
public class ShadercCompiler : IDisposable
- Inheritance
-
ShadercCompiler
- Implements
- Inherited Members
Constructors
ShadercCompiler()
public ShadercCompiler()
Fields
Handle
public shaderc_compiler* Handle
Field Value
Methods
CompileIntoSpirv(byte[], ShaderKind, string, string, CompilerOptions)
public CompilationResult CompileIntoSpirv(byte[] source, ShaderKind kind, string fileName, string entryPoint, CompilerOptions options = null)
Parameters
source
byte[]kind
ShaderKindfileName
stringentryPoint
stringoptions
CompilerOptions
Returns
CompileIntoSpirv(string, ShaderKind, string, string, CompilerOptions)
public CompilationResult CompileIntoSpirv(string source, ShaderKind kind, string fileName, string entryPoint, CompilerOptions options = null)
Parameters
source
stringkind
ShaderKindfileName
stringentryPoint
stringoptions
CompilerOptions
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
~ShadercCompiler()
protected ~ShadercCompiler()