24// When a constant buffer is bound, copy the data into the members
25 #undef JPH_SHADER_CONSTANTS_BEGIN
26 #undef JPH_SHADER_CONSTANTS_MEMBER
27 #define JPH_SHADER_CONSTANTS_BEGIN(type, name) case HashString(#name): memcpy(&name + 1, inData, size_t(inSize)); break; // Very hacky way to get the address of the first constant and to copy the entire block of constants