The GrabFrameTexture
method in the CommandList
class is used to capture a copy of the current framebuffer and return a handle to it. This handle can be used to access the captured frame texture for further processing or rendering operations.
The GrabFrameTexture
method in the CommandList
class is used to capture a copy of the current framebuffer and return a handle to it. This handle can be used to access the captured frame texture for further processing or rendering operations.
To use the GrabFrameTexture
method, you need to provide a unique string token that identifies the framebuffer copy. This token is used to reference the captured texture in subsequent operations.
// Create a CommandList instance var commandList = new CommandList(); // Define a unique token for the framebuffer copy string token = "MyFrameTexture"; // Grab the frame texture RenderTargetHandle frameTextureHandle = commandList.GrabFrameTexture(token); // Use the frameTextureHandle for further rendering operations // ...