Interface IShaderDataProvider ​
Namespace: ValveResourceFormat.IO
Assembly: ValveResourceFormat.dll
Provides shader data information for materials, including texture input mappings and suffixes.
csharp
public interface IShaderDataProviderMethods ​
GetInputsForTexture(string, Material) ​
Gets the input texture channels and names for a given texture type in a material.
csharp
IEnumerable<(ChannelMapping Channel, string Name)> GetInputsForTexture(string textureType, Material material)Parameters ​
textureType string
The type of texture to query.
material Material
The material containing the texture.
Returns ​
IEnumerable<(ChannelMapping Channel, string Name)>
A collection of channel mappings and their corresponding input names.
GetSuffixForInputTexture(string, Material) ​
Gets the file suffix for a given input texture name.
csharp
string? GetSuffixForInputTexture(string inputName, Material material)Parameters ​
inputName string
The name of the input texture.
material Material
The material containing the texture.
Returns ​
The suffix string for the input texture, or null if not found.

