D3D12/Texture: Fix non-(0,0) texture streaming

This commit is contained in:
Connor McLaughlin
2021-07-13 14:16:12 +10:00
parent 5fa07999e7
commit fc164ce021
2 changed files with 10 additions and 4 deletions

View File

@ -55,6 +55,7 @@ public:
bool LoadData(u32 x, u32 y, u32 width, u32 height, const void* data, u32 pitch);
static void CopyToUploadBuffer(const void* src_data, u32 src_pitch, u32 height, void* dst_data, u32 dst_pitch);
void CopyFromBuffer(u32 x, u32 y, u32 width, u32 height, u32 pitch, ID3D12Resource* buffer, u32 buffer_offset);
private:
static bool CreateSRVDescriptor(ID3D12Resource* resource, DXGI_FORMAT format, bool multisampled,