Class GorgonTextureLoadOptions
Options to pass when loading a texture from a stream or the file system.
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public class GorgonTextureLoadOptions
Properties
| Edit this page View SourceBinding
Property to set or return the allowed bindings for the texture.
Declaration
public TextureBinding Binding { get; set; }
Property Value
Type | Description |
---|---|
TextureBinding |
Remarks
The default value is ShaderResource.
ConvertToPremultipliedAlpha
Property to set or return whether to convert the texture data to premultiplied alpha when loading.
Declaration
public bool ConvertToPremultipliedAlpha { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
The default value is false.
Name
Property to set or return the name of the image.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Usage
Property to set or return the intended usage for the texture.
Declaration
public ResourceUsage Usage { get; set; }
Property Value
Type | Description |
---|---|
ResourceUsage |
Remarks
The default value is Default.