IDStorageFactoryX::SetStagingBufferSize
Sets the size of the staging buffer.
Syntax
HRESULT SetStagingBufferSize(
UINT32 size
)
Parameters
size
Type: UINT32
Size, in bytes, of the staging buffer.
Return value
Type: HRESULT
Standard HRESULT
error code.
Remarks
The staging buffer temporarily stores content loaded from the storage device before it is decrypted or decompressed. If only memory-sourced queues are used, the size of the staging buffer can be zero.
SetStagingBufferSize
can be called only when no IDStorageQueueX or IDStorageFileX object exists.
In the current preview release, the only valid staging-buffer sizes are enumerated in the DSTORAGE_STAGING_BUFFER_SIZE
enumeration.
For more information, see the "Staging buffer" section in DirectStorage Overview.
Requirements
Header: dstorage_xs.h
Library: dstorage_xs.lib
Supported platforms: Xbox Series consoles