Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_framebuffer.c
| Show First 20 Lines • Show All 882 Lines • ▼ Show 20 Lines | int GPU_offscreen_height(const GPUOffScreen *ofs) | ||||
| return GPU_texture_height(ofs->color); | return GPU_texture_height(ofs->color); | ||||
| } | } | ||||
| GPUTexture *GPU_offscreen_color_texture(const GPUOffScreen *ofs) | GPUTexture *GPU_offscreen_color_texture(const GPUOffScreen *ofs) | ||||
| { | { | ||||
| return ofs->color; | return ofs->color; | ||||
| } | } | ||||
| GPUContext *GPU_offscreen_context(const GPUOffScreen *ofs) | |||||
| { | |||||
| return ofs->fb->ctx; | |||||
| } | |||||
| /* only to be used by viewport code! */ | /* only to be used by viewport code! */ | ||||
| void GPU_offscreen_viewport_data_get( | void GPU_offscreen_viewport_data_get( | ||||
| GPUOffScreen *ofs, | GPUOffScreen *ofs, | ||||
| GPUFrameBuffer **r_fb, GPUTexture **r_color, GPUTexture **r_depth) | GPUFrameBuffer **r_fb, GPUTexture **r_color, GPUTexture **r_depth) | ||||
| { | { | ||||
| *r_fb = ofs->fb; | *r_fb = ofs->fb; | ||||
| *r_color = ofs->color; | *r_color = ofs->color; | ||||
| *r_depth = ofs->depth; | *r_depth = ofs->depth; | ||||
| Show All 11 Lines | |||||