FileUtil
- Namespace: Turian.Engine.Core
- Source File: FileUtil.cs
Utility class for file-related operations.
Public Methods
GetShaderBytes
public static byte[] GetShaderBytes(string filename, string renderSystemName)
Retrieves the bytes of a shader file embedded as a resource in the executing assembly.
Parameters:
filename(string): The name of the shader file.renderSystemName(string): The name of the render system (for error messages).
Returns: byte[]
- The bytes of the shader file.