Gorgon
Show / Hide Table of Contents

Enum ResourceUsage

Defines the intended usage resources.

Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public enum ResourceUsage
Remarks

This defines how the resource should be used when rendering and whether or not it is CPU and/or GPU accessible.

Fields

Name Description
Default

A resource that requires read and write access by the GPU. This is likely to be the most common usage choice.

Dynamic

A resource that is accessible by both the GPU (read only) and the CPU (write only). A dynamic resource is a good choice for a resource that will be updated by the CPU at least once per frame. To update a dynamic resource, use a method.

Immutable

A resource that can only be read by the GPU. It cannot be written by the GPU, and cannot be accessed at all by the CPU. This type of resource must be initialized when it is created, since it cannot be changed after creation.

None

No intended usage was defined for this resource.

Staging

A resource that supports data transfer (copy) from the GPU to the CPU.

Extension Methods

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