forked from blender/blender
Rename some functions #25
@ -196,8 +196,13 @@ void FinalEngineGL::render(Depsgraph *depsgraph)
|
|||||||
std::vector<float> &pixels = render_images["Combined"];
|
std::vector<float> &pixels = render_images["Combined"];
|
||||||
|
|
||||||
GPUFrameBuffer *framebuffer = GPU_framebuffer_create("fb_hdyra_render_final");
|
GPUFrameBuffer *framebuffer = GPU_framebuffer_create("fb_hdyra_render_final");
|
||||||
GPUTexture *texture = GPU_texture_create_2d(
|
GPUTexture *texture = GPU_texture_create_2d("tex_hydra_render_final",
|
||||||
"tex_hydra_render_final", res[0], res[1], 1, GPU_RGBA32F, GPU_TEXTURE_USAGE_GENERAL, nullptr);
|
res[0],
|
||||||
|
res[1],
|
||||||
|
1,
|
||||||
|
GPU_RGBA32F,
|
||||||
|
GPU_TEXTURE_USAGE_GENERAL,
|
||||||
|
nullptr);
|
||||||
GPU_texture_filter_mode(texture, true);
|
GPU_texture_filter_mode(texture, true);
|
||||||
GPU_texture_mipmap_mode(texture, true, true);
|
GPU_texture_mipmap_mode(texture, true, true);
|
||||||
GPU_framebuffer_texture_attach(framebuffer, texture, 0, 0);
|
GPU_framebuffer_texture_attach(framebuffer, texture, 0, 0);
|
||||||
|
@ -16,8 +16,7 @@ CLG_LOGREF_DECLARE_GLOBAL(LOG_BSD, "rhd.bsd");
|
|||||||
BlenderSceneDelegate::BlenderSceneDelegate(pxr::HdRenderIndex *parent_index,
|
BlenderSceneDelegate::BlenderSceneDelegate(pxr::HdRenderIndex *parent_index,
|
||||||
pxr::SdfPath const &delegate_id,
|
pxr::SdfPath const &delegate_id,
|
||||||
BlenderSceneDelegate::EngineType engine_type)
|
BlenderSceneDelegate::EngineType engine_type)
|
||||||
: HdSceneDelegate(parent_index, delegate_id),
|
: HdSceneDelegate(parent_index, delegate_id), engine_type(engine_type)
|
||||||
engine_type(engine_type)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user