Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_texture.c
| Show First 20 Lines • Show All 399 Lines • ▼ Show 20 Lines | switch (format) { | ||||
| case GPU_R16: return GL_R16; | case GPU_R16: return GL_R16; | ||||
| case GPU_R8: return GL_R8; | case GPU_R8: return GL_R8; | ||||
| case GPU_R8UI: return GL_R8UI; | case GPU_R8UI: return GL_R8UI; | ||||
| /* Special formats texture & renderbuffer */ | /* Special formats texture & renderbuffer */ | ||||
| case GPU_R11F_G11F_B10F: return GL_R11F_G11F_B10F; | case GPU_R11F_G11F_B10F: return GL_R11F_G11F_B10F; | ||||
| case GPU_DEPTH24_STENCIL8: return GL_DEPTH24_STENCIL8; | case GPU_DEPTH24_STENCIL8: return GL_DEPTH24_STENCIL8; | ||||
| case GPU_DEPTH32F_STENCIL8: return GL_DEPTH32F_STENCIL8; | case GPU_DEPTH32F_STENCIL8: return GL_DEPTH32F_STENCIL8; | ||||
| /* Texture only format */ | /* Texture only format */ | ||||
| /* ** Add Format here **/ | /* ** Add Format here */ | ||||
| /* Special formats texture only */ | /* Special formats texture only */ | ||||
| /* ** Add Format here **/ | /* ** Add Format here */ | ||||
| /* Depth Formats */ | /* Depth Formats */ | ||||
| case GPU_DEPTH_COMPONENT32F: return GL_DEPTH_COMPONENT32F; | case GPU_DEPTH_COMPONENT32F: return GL_DEPTH_COMPONENT32F; | ||||
| case GPU_DEPTH_COMPONENT24: return GL_DEPTH_COMPONENT24; | case GPU_DEPTH_COMPONENT24: return GL_DEPTH_COMPONENT24; | ||||
| case GPU_DEPTH_COMPONENT16: return GL_DEPTH_COMPONENT16; | case GPU_DEPTH_COMPONENT16: return GL_DEPTH_COMPONENT16; | ||||
| default: | default: | ||||
| BLI_assert(!"Texture format incorrect or unsupported\n"); | BLI_assert(!"Texture format incorrect or unsupported\n"); | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,182 Lines • Show Last 20 Lines | |||||