Does HLSL offer a way to get the size in bytes of a structure, similar to sizeof( MyStruct )?
[DX11] Getting the size of a structure in HLSL
http://msdn.microsoft.com/en-us/library/windows/desktop/bb509638(v=vs.85).aspx
Can't find it anywhere, so probably no.
I can't imagine why would you even need it anyways.
Can't find it anywhere, so probably no.
I can't imagine why would you even need it anyways.
On 11/25/2011 at 4:06 PM, Ripiz said:http://msdn.microsoft.com/en-us/library/windows/desktop/bb509638(v=vs.85).aspx
Can't find it anywhere, so probably no.
I can't imagine why would you even need it anyways.
For compile-time checks?
static_assert(sizeof(Buffer) == 64, "CPU/GPU struct mismatch");
🧙
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement