mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 23:08:05 -05:00
Move DXGI_FORMAT definition into separate namespace to make it compatible to existing definitions
This commit is contained in:
@ -351,7 +351,7 @@ namespace T6
|
||||
else
|
||||
textureLoader.Type(TextureType::T_2D);
|
||||
|
||||
textureLoader.Format(static_cast<DXGI_FORMAT>(loadDef->format));
|
||||
textureLoader.Format(static_cast<oat::DXGI_FORMAT>(loadDef->format));
|
||||
textureLoader.HasMipMaps(!(loadDef->flags & iwi27::IMG_FLAG_NOMIPMAPS));
|
||||
Texture* loadedTexture = textureLoader.LoadTexture(image->texture.loadDef->data);
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
Dx12TextureLoader::Dx12TextureLoader(MemoryManager* memoryManager)
|
||||
: m_memory_manager(memoryManager),
|
||||
m_format(DXGI_FORMAT_UNKNOWN),
|
||||
m_format(oat::DXGI_FORMAT_UNKNOWN),
|
||||
m_type(TextureType::T_2D),
|
||||
m_has_mip_maps(false),
|
||||
m_width(1u),
|
||||
@ -24,7 +24,7 @@ const ImageFormat* Dx12TextureLoader::GetFormatForDx12Format() const
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Dx12TextureLoader& Dx12TextureLoader::Format(const DXGI_FORMAT format)
|
||||
Dx12TextureLoader& Dx12TextureLoader::Format(const oat::DXGI_FORMAT format)
|
||||
{
|
||||
m_format = format;
|
||||
return *this;
|
||||
|
@ -12,7 +12,7 @@ class Dx12TextureLoader
|
||||
static std::unordered_map<ImageFormatId, ImageFormatId> m_conversion_table;
|
||||
|
||||
MemoryManager* m_memory_manager;
|
||||
DXGI_FORMAT m_format;
|
||||
oat::DXGI_FORMAT m_format;
|
||||
TextureType m_type;
|
||||
bool m_has_mip_maps;
|
||||
size_t m_width;
|
||||
@ -24,7 +24,7 @@ class Dx12TextureLoader
|
||||
public:
|
||||
explicit Dx12TextureLoader(MemoryManager* memoryManager);
|
||||
|
||||
Dx12TextureLoader& Format(DXGI_FORMAT format);
|
||||
Dx12TextureLoader& Format(oat::DXGI_FORMAT format);
|
||||
Dx12TextureLoader& Type(TextureType textureType);
|
||||
Dx12TextureLoader& HasMipMaps(bool hasMipMaps);
|
||||
Dx12TextureLoader& Width(size_t width);
|
||||
|
Reference in New Issue
Block a user