Interface IShaderDataProvider ​
Namespace: ValveResourceFormat.IO
Assembly: ValveResourceFormat.dll
Provides shader data information for materials, including texture input mappings and suffixes.
public interface IShaderDataProviderMethods ​
GetBlendState(Material, IReadOnlyDictionary<string, long>?) ​
Gets the blend state of a material for the default dynamic combo.
RsBlendStateDesc GetBlendState(Material material, IReadOnlyDictionary<string, long>? combos = null)Parameters ​
material Material
The material.
combos IReadOnlyDictionary<string, long>?
Integer parameters overriding those of the material, as F_ features or S_ and D_ combos.
Returns ​
GetInputsForTexture(string, Material) ​
Gets the input texture channels and names for a given texture type in a material.
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.
GetIntAttributes(Material, IReadOnlyDictionary<string, long>?) ​
Gets the integer attributes of a material combined with those of its shader, the material taking precedence.
IReadOnlyDictionary<string, long> GetIntAttributes(Material material, IReadOnlyDictionary<string, long>? combos = null)Parameters ​
material Material
The material.
combos IReadOnlyDictionary<string, long>?
Overrides for the integer parameters of the material.
Returns ​
IReadOnlyDictionary<string, long>
GetSuffixForInputTexture(string, Material) ​
Gets the file suffix for a given input texture name.
string? GetSuffixForInputTexture(string inputName, Material material)Parameters ​
inputName string
The name of the input texture.
material Material
The material containing the texture.
Returns ​
string?
The suffix string for the input texture, or null if not found.

