3 ms·
In GPUs GLSL like types compile down to what basically is variable length SIMD. A vec4 doesn't get compiled to a SIMD vector with four floats, but rather to fou
by camel-cdr 5mo ago
In GPUs GLSL like types compile down to what basically is variable length SIMD.
A vec4 doesn't get compiled to a SIMD vector with four floats, but rather to four SIMD vectors, each containing N FP32 elements (usually 32 or 64).
Look at what this simple shader compiles down to on RGA: https://godbolt.org/z/4GrfY61vf https://godbolt.org/z/4GrfY61vf
- whizzter 5mo agoRight, and AVX512 would thus be more relevant if ISPC-like features was mainstreamed in CPU bound C++ compilers.