Post

Replies

Boosts

Views

Activity

Reply to How to store float as half data type from cpu side
You can use __fp16 or _Float16 data types. __fp16 is not an arithmetic data type and should be used for storage purposes. It allows conversion from and to floats. _Float16 is an arithmetic data type and have supports for standard operations. _Float16 is more modern and a better choice. You can set a half constant with the f16 suffix following your real number.
Topic: Graphics & Games SubTopic: General Tags:
May ’22
Reply to Render MTKView with different Colorspace
MTKView has a colorspace property. And to paraphrase Apple documentation : The default value is nil, indicating that the rendered content isn’t color-matched. If you set this to a different color space, Core Animation performs any necessary color transformations when compositing the view’s contents.
Topic: Media Technologies SubTopic: General Tags:
Mar ’22