Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_texture.c
| Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
| static struct GPUTextureGlobal { | static struct GPUTextureGlobal { | ||||
| GPUTexture *invalid_tex_1D; /* texture used in place of invalid textures (not loaded correctly, missing) */ | GPUTexture *invalid_tex_1D; /* texture used in place of invalid textures (not loaded correctly, missing) */ | ||||
| GPUTexture *invalid_tex_2D; | GPUTexture *invalid_tex_2D; | ||||
| GPUTexture *invalid_tex_3D; | GPUTexture *invalid_tex_3D; | ||||
| } GG = {NULL, NULL, NULL}; | } GG = {NULL, NULL, NULL}; | ||||
| /* Maximum number of FBOs a texture can be attached to. */ | /* Maximum number of FBOs a texture can be attached to. */ | ||||
| #define GPU_TEX_MAX_FBO_ATTACHED 10 | #define GPU_TEX_MAX_FBO_ATTACHED 11 | ||||
| typedef enum eGPUTextureFormatFlag { | typedef enum eGPUTextureFormatFlag { | ||||
| GPU_FORMAT_DEPTH = (1 << 0), | GPU_FORMAT_DEPTH = (1 << 0), | ||||
| GPU_FORMAT_STENCIL = (1 << 1), | GPU_FORMAT_STENCIL = (1 << 1), | ||||
| GPU_FORMAT_INTEGER = (1 << 2), | GPU_FORMAT_INTEGER = (1 << 2), | ||||
| GPU_FORMAT_FLOAT = (1 << 3), | GPU_FORMAT_FLOAT = (1 << 3), | ||||
| GPU_FORMAT_1D = (1 << 10), | GPU_FORMAT_1D = (1 << 10), | ||||
| ▲ Show 20 Lines • Show All 1,540 Lines • Show Last 20 Lines | |||||