50 inline float GPUCommand::convert_int_to_float(
int v)
const {
52 #if !PACK_INT_AS_FLOAT
57 assert(
sizeof(
float) == 4);
61 union { int32_t _int;
float _float; } converter = { (int32_t)v };
62 return converter._float;
76 if (_current_index >= GPU_COMMAND_ENTRIES) {
77 gpucommand_cat.error() <<
"Out of bounds! Exceeded command size of " << GPU_COMMAND_ENTRIES << std::endl;
80 _data[_current_index++] = v;
151 for (
size_t i = 0; i < 3; ++i) {
152 for (
size_t j = 0; j < 3; ++j) {
167 for (
size_t i = 0; i < 4; ++i) {
168 for (
size_t j = 0; j < 4; ++j) {
184 return PACK_INT_AS_FLOAT;