Class CDmeVtex
Namespace: ValveResourceFormat.IO.ContentFormats.ValveTexture
Assembly: ValveResourceFormat.dll
Root element of a texture content file (.vtex), describing the inputs and the output image to compile.
[HungarianProperties]
public class CDmeVtex : Element, IDictionary<string, object?>, ICollection<KeyValuePair<string, object?>>, IEnumerable<KeyValuePair<string, object?>>, IDictionary, ICollection, IEnumerable, IEquatable<Element>Inheritance
object ← AttributeList ← Element ← CDmeVtex
Implements
IDictionary<string, object?>, ICollection<KeyValuePair<string, object?>>, IEnumerable<KeyValuePair<string, object?>>, IDictionary, ICollection, IEnumerable, IEquatable<Element>
Inherited Members
Element.Get<T>(string), Element.GetArray<T>(string), Element.Contains(string), Element.ToString(), Element.ContainsKey(string), Element.Equals(Element?), Element.Equals(object?), Element.GetHashCode(), Element.ID, Element.Name, Element.ClassName, Element.Stub, Element.Owner, Element.this[string], AttributeList.Attribute_ChangeLock, AttributeList.Add(string, object?), AttributeList.Set<T>(string, T), AttributeList.GetOverrideType(string), AttributeList.SetOverrideType(string, AttributeList.OverrideType?), AttributeList.Remove(string), AttributeList.TryGetValue(string, out object?), AttributeList.ContainsKey(string), AttributeList.RemoveAt(int), AttributeList.IndexOf(string), AttributeList.Clear(), AttributeList.GetAllAttributesForSerialization(), AttributeList.GetEnumerator(), AttributeList.OnPropertyChanged(string), AttributeList.OnCollectionChanged(NotifyCollectionChangedEventArgs), AttributeList.Schema, AttributeList.Owner, AttributeList.Keys, AttributeList.Values, AttributeList.this[string], AttributeList.this[int], AttributeList.Count, AttributeList.IsFixedSize, AttributeList.IsReadOnly, AttributeList.IsSynchronized, AttributeList.SyncRoot, AttributeList.PropertyChanged, AttributeList.CollectionChanged
Properties
Clamp
Whether to clamp the S, T and U coordinates respectively.
public Vector3 Clamp { get; set; }Property Value
InputTextureArray
Array of CDmeInputTexture elements describing each input image.
public ElementArray InputTextureArray { get; }Property Value
ElementArray
NoLod
Sets the NO_LOD flag on the compiled texture; mips are still generated.
public bool NoLod { get; set; }Property Value
bool
OutputClearColor
Initial color before input textures are applied to the output.
[DMProperty("m_outputClearColor", false)]
public Vector4 OutputClearColor { get; set; }Property Value
OutputFormat
Image data format to generate.
public string OutputFormat { get; set; }Property Value
string
OutputMaxDimension
Gets or sets the maximum dimension for the output texture.
public int OutputMaxDimension { get; set; }Property Value
int
OutputMinDimension
Gets or sets the minimum dimension for the output texture.
public int OutputMinDimension { get; set; }Property Value
int
OutputTypeString
Type of texture to generate.
public string OutputTypeString { get; set; }Property Value
string
TextureOutputChannelArray
Array of CDmeTextureOutputChannel elements describing sets of output channels.
public ElementArray TextureOutputChannelArray { get; }Property Value
ElementArray
Methods
AddInputTexture(string, string, string, string, IEnumerable<string>)
Adds an input image.
public void AddInputTexture(string name, string fileName, string typeString, string colorSpace, IEnumerable<string> imageProcessors)Parameters
name string
Name the output channels refer to the input by.
fileName string
Content relative path of the image.
typeString string
Layout of the image, e.g. "2D", "CUBE", "2DARRAY" or "3D".
colorSpace string
Color space of the image, "srgb" or "linear".
imageProcessors IEnumerable<string>
Algorithms to run on the image, in order.
AddOutputChannel(IEnumerable<string>, string, string, string)
Adds the output channels that are compiled from the named inputs.
public void AddOutputChannel(IEnumerable<string> inputNames, string channels, string colorSpace, string mipAlgorithm)Parameters
inputNames IEnumerable<string>
Names of the inputs, as given to CDmeVtex.AddInputTexture(string, string, string, string, IEnumerable<string>).
channels string
Channels to read and write, e.g. "rgb" or "a".
colorSpace string
Color space of the output, "srgb" or "linear".
mipAlgorithm string
Mipmap generation algorithm, "None" for a single mip.

