Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_texture_private.hh
| Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
| #ifdef DEBUG | #ifdef DEBUG | ||||
| # define DEBUG_NAME_LEN 64 | # define DEBUG_NAME_LEN 64 | ||||
| #else | #else | ||||
| # define DEBUG_NAME_LEN 8 | # define DEBUG_NAME_LEN 8 | ||||
| #endif | #endif | ||||
| /* 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 13 | #define GPU_TEX_MAX_FBO_ATTACHED 14 | ||||
| class Texture { | class Texture { | ||||
| public: | public: | ||||
| /** Internal Sampler state. */ | /** Internal Sampler state. */ | ||||
| eGPUSamplerState sampler_state = GPU_SAMPLER_DEFAULT; | eGPUSamplerState sampler_state = GPU_SAMPLER_DEFAULT; | ||||
| /** Reference counter. */ | /** Reference counter. */ | ||||
| int refcount = 1; | int refcount = 1; | ||||
| /** Width & Height (of source data), optional. */ | /** Width & Height (of source data), optional. */ | ||||
| ▲ Show 20 Lines • Show All 467 Lines • Show Last 20 Lines | |||||