Stream Output API

namespace d3d

Functions

void set_stream_output_buffer(int slot, const StreamOutputBufferSetup &buffer)

Sets the stream output buffer for the next draw calls.

Note that you have to reset the stream output buffer to null after the needed draw calls.

Note

It is invalid to call this when DeviceDriverCapabilities::hasStreamOutput feature is not supported.

Warning

Stream output requires to ship DXIL on Xbox which will increase bindump size and pipelines creation time. Minimize amount of such pipelines since it is very expensive on Xbox!

Parameters:
  • slot – The stream output slot index (slot is limited by MAX_STREAM_OUTPUT_SLOTS).

  • buffer – The stream output slot description.