IFrameBufferCallback::ResultCallback method

A callback that notifies the host of framebuffer information returned by the associated request.

Syntax

HRESULT ResultCallback(
   DWORD   frameNumber,
   DWORD   width,
   DWORD   height,
   DWORD   renderTargetPtr,
   double  frameDuraction,
   DWORD   size,
   BYTE [] count5_buffer
);

Parameters

frameNumber
The frame number.

width
The width of the frame.

height
The height of the frame.

renderTargetPtr
The render target that the results come from. It is always a slot specified by the frame buffer request, or if not a draw call, then the first RTV bount to the output source.

frameDuraction
Not used.

size
The size of the output buffer in bytes.

count5_buffer
The contents of the render target in R8G8B8A8_UNORM format.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Header

Vspixengine.h

See also

IFrameBufferCallback