Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/opengl/gl_texture.hh
| Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | private: | ||||
| /* 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; | ||||
| 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 format, const void *data) override; | int mip, int offset[3], int extent[3], eGPUDataFormat type, const void *data) override; | ||||
| void generate_mipmap(void) override; | void generate_mipmap(void) override; | ||||
| void copy_to(Texture *tex) override; | void copy_to(Texture *dst) override; | ||||
| void clear(eGPUDataFormat format, const void *data) override; | void clear(eGPUDataFormat format, const void *data) override; | ||||
| void swizzle_set(const char swizzle_mask[4]) override; | void swizzle_set(const char swizzle_mask[4]) override; | ||||
| void mip_range_set(int min, int max) override; | void mip_range_set(int min, int max) override; | ||||
| void *read(int mip, eGPUDataFormat format) override; | void *read(int mip, eGPUDataFormat type) override; | ||||
| void check_feedback_loop(void); | void check_feedback_loop(void); | ||||
| /* TODO(fclem) Legacy. Should be removed at some point. */ | /* TODO(fclem) Legacy. Should be removed at some point. */ | ||||
| uint gl_bindcode_get(void) const override; | uint gl_bindcode_get(void) const override; | ||||
| static void samplers_init(void); | static void samplers_init(void); | ||||
| static void samplers_free(void); | static void samplers_free(void); | ||||
| ▲ Show 20 Lines • Show All 292 Lines • Show Last 20 Lines | |||||