Struct DSTORAGE_REQUEST

Struct Documentation

struct DSTORAGE_REQUEST

Represents a DirectStorage request.

Public Members

DSTORAGE_REQUEST_OPTIONS Options

Combination of decompression and other options for this request.

DSTORAGE_SOURCE Source

The source for this request.

DSTORAGE_DESTINATION Destination

The destination for this request.

UINT32 UncompressedSize

The uncompressed size in bytes for the destination for this request. If the request is not compressed, then this can be left as 0.

For compressed data, if the destination is memory, then the uncompressed size must exactly equal the destination size. For other destination types, the uncompressed size may be greater than the destination size.

If the destination is to memory or buffer, then the destination size should be specified in the corresponding struct (for example, DSTORAGE_DESTINATION_MEMORY). For textures, it's the value of pTotalBytes returned by GetCopyableFootprints. For tiles, it's 64k * number of tiles.

UINT64 CancellationTag

An arbitrary UINT64 number used for cancellation matching.

_In_opt_z_ const CHAR * Name

Optional name of the request. Used for debugging. If specified, the string should be accessible until the request completes.