Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/opengl/gl_framebuffer.hh
| Show All 26 Lines | |||||
| private: | private: | ||||
| /** OpenGL handle. */ | /** OpenGL handle. */ | ||||
| GLuint fbo_id_ = 0; | GLuint fbo_id_ = 0; | ||||
| /** Context the handle is from. Frame-buffers are not shared across contexts. */ | /** Context the handle is from. Frame-buffers are not shared across contexts. */ | ||||
| GLContext *context_ = nullptr; | GLContext *context_ = nullptr; | ||||
| /** State Manager of the same contexts. */ | /** State Manager of the same contexts. */ | ||||
| GLStateManager *state_manager_ = nullptr; | GLStateManager *state_manager_ = nullptr; | ||||
| /** Copy of the GL state. Contains ONLY color attachments enums for slot binding. */ | /** Copy of the GL state. Contains ONLY color attachments enums for slot binding. */ | ||||
| GLenum gl_attachments_[GPU_FB_MAX_COLOR_ATTACHMENT]; | GLenum gl_attachments_[GPU_FB_MAX_COLOR_ATTACHMENT] = {0}; | ||||
| /** Internal frame-buffers are immutable. */ | /** Internal frame-buffers are immutable. */ | ||||
| bool immutable_; | bool immutable_; | ||||
| /** True is the frame-buffer has its first color target using the GPU_SRGB8_A8 format. */ | /** True is the frame-buffer has its first color target using the GPU_SRGB8_A8 format. */ | ||||
| bool srgb_; | bool srgb_; | ||||
| /** True is the frame-buffer has been bound using the GL_FRAMEBUFFER_SRGB feature. */ | /** True is the frame-buffer has been bound using the GL_FRAMEBUFFER_SRGB feature. */ | ||||
| bool enabled_srgb_ = false; | bool enabled_srgb_ = false; | ||||
| public: | public: | ||||
| ▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines | |||||