Refactor: GPU: Texture: Replace eGPUTextureFormat by TextureFormat

This offers better semantic and safety of the API.

Part of #130632

Pull Request: https://projects.blender.org/blender/blender/pulls/142818
This commit is contained in:
Clément Foucault
2025-07-22 14:58:54 +02:00
committed by Clément Foucault
parent 144696f7ee
commit 32d64d35bb
205 changed files with 2997 additions and 2617 deletions

View File

@@ -220,14 +220,14 @@ void GPURenderTaskDelegate::set_viewport(pxr::GfVec4d const &viewport)
void GPURenderTaskDelegate::add_aov(pxr::TfToken const &aov_key)
{
eGPUTextureFormat format;
blender::gpu::TextureFormat format;
blender::gpu::Texture **tex;
if (aov_key == pxr::HdAovTokens->color) {
format = GPU_RGBA32F;
format = blender::gpu::TextureFormat::SFLOAT_32_32_32_32;
tex = &tex_color_;
}
else if (aov_key == pxr::HdAovTokens->depth) {
format = GPU_DEPTH_COMPONENT32F;
format = blender::gpu::TextureFormat::SFLOAT_32_DEPTH;
tex = &tex_depth_;
}
else {