Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/opengl/gl_texture.hh
| Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | private: | ||||
| GLenum target_ = -1; | GLenum target_ = -1; | ||||
| /** opengl identifier for texture. */ | /** opengl identifier for texture. */ | ||||
| GLuint tex_id_ = 0; | GLuint tex_id_ = 0; | ||||
| /** Legacy workaround for texture copy. Created when using framebuffer_get(). */ | /** Legacy workaround for texture copy. Created when using framebuffer_get(). */ | ||||
| struct GPUFrameBuffer *framebuffer_ = NULL; | struct GPUFrameBuffer *framebuffer_ = NULL; | ||||
| /** True if this texture is bound to at least one texture unit. */ | /** True if this texture is bound to at least one texture unit. */ | ||||
| /* TODO(fclem): How do we ensure thread safety here? */ | /* TODO(fclem): How do we ensure thread safety here? */ | ||||
| bool is_bound_ = false; | bool is_bound_ = false; | ||||
| /** True if pixels in the texture have been initialized. */ | |||||
| bool has_pixels_ = false; | |||||
| public: | public: | ||||
| GLTexture(const char *name); | GLTexture(const char *name); | ||||
| ~GLTexture(); | ~GLTexture(); | ||||
| void update_sub( | void update_sub( | ||||
| int mip, int offset[3], int extent[3], eGPUDataFormat type, const void *data) override; | int mip, int offset[3], int extent[3], eGPUDataFormat type, const void *data) override; | ||||
| ▲ Show 20 Lines • Show All 323 Lines • Show Last 20 Lines | |||||