Fixed rendering for MacOS #82

Merged
Bogdan Nagirniak merged 10 commits from BLEN-473 into hydra-render 2023-08-02 09:37:25 +02:00
2 changed files with 2 additions and 7 deletions
Showing only changes of commit 88b67e1f8a - Show all commits

View File

@ -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_RGBA32F;
format = GPU_RGBA16F;
}
else {
format = GPU_RGBA32F;
}
tex = &tex_color_; tex = &tex_color_;
} }
else if (aov_key == pxr::HdAovTokens->depth) { else if (aov_key == pxr::HdAovTokens->depth) {

View File

@ -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);
} }