ResourceState CopyDestination

robot_2Generated
code_blocksInput

Description

The CopyDestination field is a member of the ResourceState enumeration within the Sandbox.Rendering namespace. It represents a state where a GPU resource is designated as the destination for a copy operation. This state is typically used when you want to copy data from one resource to another, and the resource in this state is the target of the copy.

Usage

Use the CopyDestination state when you need to perform a copy operation to a resource. This is essential for ensuring that the resource is correctly prepared to receive data from another resource. Transitioning a resource to this state is necessary before executing copy commands that target the resource.

Example

// Example of transitioning a resource to CopyDestination state
ResourceState currentState = ResourceState.Common;

// Transition the resource to CopyDestination state
currentState = ResourceState.CopyDestination;

// Now the resource is ready to be used as a destination in a copy operation.