Description
The None
field is a member of the TextureProcessor
enumeration within the Editor.ShaderGraph
namespace. This field represents a state where no texture processing is applied. It is useful when you want to bypass any texture processing operations and use the texture in its original form.
Usage
Use the None
field when you need to specify that no additional processing should be applied to a texture. This can be particularly useful in scenarios where the texture is already in the desired format or when performance is a concern and you want to avoid unnecessary processing.
Example
// Example of using TextureProcessor.None
// Assume 'texture' is a texture object you are working with
TextureProcessor processor = TextureProcessor.None;
// Use the processor in a method that requires a TextureProcessor parameter
ApplyTextureProcessing(texture, processor);
void ApplyTextureProcessing(Texture texture, TextureProcessor processor)
{
if (processor == TextureProcessor.None)
{
// No processing is applied
return;
}
// Other processing logic
}