Description
The ResolveSource
field is a member of the ResourceState
enumeration within the Sandbox.Rendering
namespace. It represents a specific state of a GPU resource, indicating that the resource is being used as a source for a resolve operation. This is typically used in graphics programming when resolving multi-sample anti-aliasing (MSAA) render targets to a non-MSAA render target.
Usage
Use the ResolveSource
state when you need to specify that a resource is being used as the source in a resolve operation. This is part of setting up resource barriers to ensure proper synchronization and state transitions in GPU operations.
Example
// Example of using ResourceState.ResolveSource in a resource barrier setup
// Assuming 'commandList' is a valid command list and 'resource' is a valid GPU resource
commandList.ResourceBarrierTransition(
resource,
ResourceState.RenderTarget, // Current state
ResourceState.ResolveSource // New state
);