| 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 | { |
no test coverage detected