Gorgon
Show / Hide Table of Contents

Class GorgonTexture2DInfo

Information used to create a texture object.

Inheritance
object
GorgonTexture2DInfo
Implements
IGorgonTexture2DInfo
IGorgonNamedObject
IGorgonImageInfo
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 GorgonTexture2DInfo : IGorgonTexture2DInfo, IGorgonNamedObject, IGorgonImageInfo

Constructors

| Edit this page View Source

GorgonTexture2DInfo(IGorgonTexture2DInfo, string)

Initializes a new instance of the GorgonTexture2DInfo class.

Declaration
public GorgonTexture2DInfo(IGorgonTexture2DInfo info, string newName = null)
Parameters
Type Name Description
IGorgonTexture2DInfo info

A IGorgonTexture2DInfo to copy settings from.

string newName

[Optional] The new name for the texture.

Exceptions
Type Condition
ArgumentNullException

Thrown when the info parameter is null.

| Edit this page View Source

GorgonTexture2DInfo(int, int, BufferFormat)

Initializes a new instance of the GorgonTexture2DInfo class.

Declaration
public GorgonTexture2DInfo(int width, int height, BufferFormat format)
Parameters
Type Name Description
int width

The width.

int height

The height.

BufferFormat format

The format.

Properties

| Edit this page View Source

ArrayCount

Property to return the number of array levels for a 1D or 2D texture.

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

Binding

Property to return the flags to determine how the texture will be bound with the pipeline when rendering.

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

Format

Property to return the format of the texture.

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

Height

Property to return the height of the texture, in pixels.

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

IsCubeMap

Property to return whether this 2D texture is a cube map.

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

MipLevels

Property to return the number of mip-map levels for the texture.

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

MultisampleInfo

Property to return the multisample quality and count for this texture.

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

Name

Property to return the name of the texture.

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

Shared

Property to return whether this texture can be shared with other graphics interfaces.

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

Usage

Property to return the intended usage flags for this texture.

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

Width

Property to return the width of the texture, in pixels.

Declaration
public int Width { get; set; }
Property Value
Type Description
int

Implements

IGorgonTexture2DInfo
IGorgonNamedObject
IGorgonImageInfo

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