4 ms·
> The APIs (D3D, etc.) do use matrices D3D API exposes a way to pass constant buffers to shaders. You can pass whatever you want there, even integers. There'r
by Const-me 7y ago
> The APIs (D3D, etc.) do use matrices
D3D API exposes a way to pass constant buffers to shaders. You can pass whatever you want there, even integers. There're couple limitations, size must be multiple of 16 bytes, and can't exceed 64kb, but I don't remember anything specific to matrices.
Now, the only place I can remember which specifically targets matrices - mul intrinsic in HLSL. But that thing is just a syntactic sugar, usually compiling into dp4 dxbc instructions.