mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 10:18:40 +12:00
Revert "Merge pull request #1245 from DHrpcs3/master"
This reverts commit5feba39ff7
, reversing changes made toebf28f8da0
.
This commit is contained in:
parent
5feba39ff7
commit
f483c3b9ca
319 changed files with 7402 additions and 72277 deletions
|
@ -1,5 +1,4 @@
|
|||
#pragma once
|
||||
#ifdef DX12_SUPPORT
|
||||
#include "../RSXTexture.h"
|
||||
#include <vector>
|
||||
|
||||
|
@ -11,16 +10,17 @@ struct MipmapLevelInfo
|
|||
size_t rowPitch;
|
||||
};
|
||||
|
||||
unsigned LinearToSwizzleAddress(unsigned x, unsigned y, unsigned z, unsigned log2_width, unsigned log2_height, unsigned log2_depth);
|
||||
|
||||
/**
|
||||
* Get size to store texture in a linear fashion.
|
||||
* Storage is assumed to use a rowPitchAlignement boundary for every row of texture.
|
||||
*/
|
||||
size_t getPlacedTextureStorageSpace(const rsx::texture &texture, size_t rowPitchAlignement);
|
||||
size_t getPlacedTextureStorageSpace(const RSXTexture &texture, size_t rowPitchAlignement);
|
||||
|
||||
/**
|
||||
* Write texture data to textureData.
|
||||
* Data are not packed, they are stored per rows using rowPitchAlignement.
|
||||
* Similarly, offset for every mipmaplevel is aligned to rowPitchAlignement boundary.
|
||||
*/
|
||||
std::vector<MipmapLevelInfo> uploadPlacedTexture(const rsx::texture &texture, size_t rowPitchAlignement, void* textureData);
|
||||
#endif
|
||||
std::vector<MipmapLevelInfo> uploadPlacedTexture(const RSXTexture &texture, size_t rowPitchAlignement, void* textureData);
|
Loading…
Add table
Add a link
Reference in a new issue