Skip to content

Commit

Permalink
Keep the color target as an FP16 format in hgiInterop
Browse files Browse the repository at this point in the history
Keep the colour target as an FP16 in HgiInteropMetal, which allows openGL clients to use EDR.  This doesn't change the behaviour in usdview, we'll have to add some changes into the Python code to create the right final target.

Contribution: Apple

Fixes #2482

(Internal change: 2281903)
  • Loading branch information
davidgyu authored and pixar-oss committed Jun 20, 2023
1 parent 78e66de commit 075fc26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pxr/imaging/hgiInterop/metal.mm
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@
kCFAllocatorDefault,
width,
height,
kCVPixelFormatType_32BGRA,
kCVPixelFormatType_64RGBAHalf,
(__bridge CFDictionaryRef)cvBufferProperties,
&_pixelBuffer);

Expand Down Expand Up @@ -598,7 +598,7 @@
_cvmtlTextureCache,
_pixelBuffer,
(__bridge CFDictionaryRef)metalTextureProperties,
MTLPixelFormatBGRA8Unorm,
MTLPixelFormatRGBA16Float,
width,
height,
0,
Expand Down

0 comments on commit 075fc26

Please sign in to comment.