MCPcopy Create free account
hub / github.com/crownengine/crown / writeUniform

Method writeUniform

3rdparty/bgfx/src/bgfx.cpp:1484–1489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1482 static_assert(UniformType::Count+1 == BX_COUNTOF(g_uniformTypeSize), "Must match UniformType::Enum!");
1483
1484 void UniformBuffer::writeUniform(UniformType::Enum _type, uint16_t _loc, const void* _value, uint16_t _num)
1485 {
1486 const uint32_t opcode = encodeOpcode(bx::narrowCast<uint8_t>(_type), _loc, _num, true);
1487 write(opcode);
1488 write(_value, g_uniformTypeSize[_type]*_num);
1489 }
1490
1491 void UniformBuffer::writeUniformHandle(uint8_t _type, uint16_t _loc, UniformHandle _handle, uint16_t _num)
1492 {

Callers 1

setUniformFunction · 0.80

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected