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

Function updateTexture2D

3rdparty/bgfx/src/bgfx.cpp:5096–5108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5094 }
5095
5096 void updateTexture2D(TextureHandle _handle, uint16_t _layer, uint8_t _mip, uint16_t _x, uint16_t _y, uint16_t _width, uint16_t _height, const Memory* _mem, uint16_t _pitch)
5097 {
5098 BX_ASSERT(NULL != _mem, "_mem can't be NULL");
5099 if (_width == 0
5100 || _height == 0)
5101 {
5102 release(_mem);
5103 }
5104 else
5105 {
5106 s_ctx->updateTexture(_handle, 0, _mip, _x, _y, _layer, _width, _height, 1, _pitch, _mem);
5107 }
5108 }
5109
5110 void updateTexture3D(TextureHandle _handle, uint8_t _mip, uint16_t _x, uint16_t _y, uint16_t _z, uint16_t _width, uint16_t _height, uint16_t _depth, const Memory* _mem)
5111 {

Callers 1

renderMethod · 0.85

Calls 2

releaseFunction · 0.70
updateTextureMethod · 0.45

Tested by

no test coverage detected