Description
The Common
field is a member of the ResourceState
enumeration within the Sandbox.Rendering
namespace. It represents a state where the resource is in a general-purpose state, allowing for multiple types of access without requiring a specific transition. This state is typically used when a resource is not actively being used by the GPU, or when the resource can be accessed in a read-only manner by multiple operations.
Usage
Use the ResourceState.Common
when you want to set a resource to a state that does not require specific access restrictions. This is useful for resources that are not currently being used in a specific operation or when transitioning between different states where no specific access is required.
Example
// Example of setting a resource state to Common
ResourceState currentState = ResourceState.Common;
// Use this state when the resource is not actively used or when transitioning
// between operations that do not require specific access restrictions.