mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-11 00:05:51 +00:00
Refactor: rename dds_data -> tex_data
And move it out into a tex_data.h header. This is in preparation for getting mipmaps out of EXR files, where read_dds_data for that would be a bit confusing.
This commit is contained in:
committed by
Baldur Karlsson
parent
3656641194
commit
8917bc5416
@@ -395,7 +395,7 @@ public:
|
||||
void FileChanged() { RefreshFile(); }
|
||||
private:
|
||||
void RefreshFile();
|
||||
void CreateProxyTexture(TextureDescription &texDetails, read_dds_data &read_data);
|
||||
void CreateProxyTexture(TextureDescription &texDetails, read_tex_data &read_data);
|
||||
|
||||
APIProperties m_Props;
|
||||
FrameRecord m_FrameRecord;
|
||||
@@ -515,7 +515,7 @@ RDResult IMG_CreateReplayDevice(RDCFile *rdc, IReplayDriver **driver)
|
||||
{
|
||||
FileIO::fseek64(f, 0, SEEK_SET);
|
||||
StreamReader reader(f);
|
||||
read_dds_data read_data = {};
|
||||
read_tex_data read_data = {};
|
||||
RDResult res = load_dds_from_file(&reader, read_data);
|
||||
f = NULL;
|
||||
|
||||
@@ -899,7 +899,7 @@ void ImageViewer::RefreshFile()
|
||||
m_FrameRecord.frameInfo.persistentSize = 0;
|
||||
m_FrameRecord.frameInfo.uncompressedFileSize = datasize;
|
||||
|
||||
read_dds_data read_data = {};
|
||||
read_tex_data read_data = {};
|
||||
|
||||
if(dds)
|
||||
{
|
||||
@@ -1003,7 +1003,7 @@ void ImageViewer::RefreshFile()
|
||||
FileIO::fclose(f);
|
||||
}
|
||||
|
||||
void ImageViewer::CreateProxyTexture(TextureDescription &texDetails, read_dds_data &read_data)
|
||||
void ImageViewer::CreateProxyTexture(TextureDescription &texDetails, read_tex_data &read_data)
|
||||
{
|
||||
if(m_Proxy->IsTextureSupported(texDetails))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user