summaryrefslogtreecommitdiffstats
path: root/Whisper/D3D/downloadBuffer.h
blob: 0885007bb5ef00b22eda02585797f5e64607e17c (plain)
1
2
3
4
5
6
7
8
9
#pragma once

namespace DirectCompute
{
	// Download a buffer from VRAM into std::vector
	// The function is relatively expensive, creates a temporary staging buffer on each call, and only used to test things.
	template<class E>
	HRESULT downloadBuffer( ID3D11ShaderResourceView* srv, std::vector<E>& vec );
}