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

@@ -563,7 +563,8 @@ static PyObject *pygpu_framebuffer_read_color(BPyGPUFrameBuffer *self,
PYGPU_FRAMEBUFFER_CHECK_OBJ(self);
int x, y, w, h, channels;
uint slot;
PyC_StringEnum pygpu_dataformat = {bpygpu_dataformat_items, GPU_RGBA8};
PyC_StringEnum pygpu_dataformat = {bpygpu_dataformat_items,
int(blender::gpu::TextureFormat::UNORM_8_8_8_8)};
BPyGPUBuffer *py_buffer = nullptr;
static const char *_keywords[] = {