forked from blender/blender
Fixed rendering for MacOS #82
@ -202,12 +202,7 @@ void GPURenderTaskDelegate::add_aov(pxr::TfToken const &aov_key)
|
|||||||
eGPUTextureFormat format;
|
eGPUTextureFormat format;
|
||||||
GPUTexture **tex;
|
GPUTexture **tex;
|
||||||
if (aov_key == pxr::HdAovTokens->color) {
|
if (aov_key == pxr::HdAovTokens->color) {
|
||||||
if (buffer_descriptors_[buffer_id(aov_key)].format == pxr::HdFormat::HdFormatFloat16Vec4) {
|
|
||||||
format = GPU_RGBA16F;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
format = GPU_RGBA32F;
|
format = GPU_RGBA32F;
|
||||||
}
|
|
||||||
tex = &tex_color_;
|
tex = &tex_color_;
|
||||||
}
|
}
|
||||||
else if (aov_key == pxr::HdAovTokens->depth) {
|
else if (aov_key == pxr::HdAovTokens->depth) {
|
||||||
|
@ -183,7 +183,7 @@ void DrawTexture::write_data(int width, int height, const void *data)
|
|||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
1,
|
1,
|
||||||
GPU_RGBA16F,
|
GPU_RGBA32F,
|
||||||
GPU_TEXTURE_USAGE_GENERAL,
|
GPU_TEXTURE_USAGE_GENERAL,
|
||||||
(float *)data);
|
(float *)data);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user