Issue was using metal data types not simd data types in structs and "usage of for loops". now I used simd data types and unrolled "for loops" manually then fragment function works very fast. but why metal compiler is not unrolling for loops automatically? and why is simd data types are faster?
Topic:
Graphics & Games
SubTopic:
General
Tags: