Gorgon
Show / Hide Table of Contents

Class GorgonTextureLoadOptions

Options to pass when loading a texture from a stream or the file system.

Inheritance
object
GorgonTextureLoadOptions
GorgonTexture2DLoadOptions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public class GorgonTextureLoadOptions

Properties

| Edit this page View Source

Binding

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.

| Edit this page View Source

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.

| Edit this page View Source

Name

Property to set or return the name of the image.

Declaration
public string Name { get; set; }
Property Value
Type Description
string
| Edit this page View Source

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.

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author