MCPcopy Create free account
hub / github.com/defold/defold / GetBufferSize

Function GetBufferSize

engine/graphics/src/null/graphics_null.cpp:1225–1229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1223 }
1224
1225 static inline uint32_t GetBufferSize(const TextureParams& params)
1226 {
1227 uint32_t bytes_per_pixel = dmGraphics::GetTextureFormatBitsPerPixel(params.m_Format) / 3;
1228 return sizeof(uint32_t) * params.m_Width * params.m_Height * bytes_per_pixel;
1229 }
1230
1231 static HRenderTarget NullNewRenderTarget(HContext _context, uint32_t buffer_type_flags, const RenderTargetCreationParams params)
1232 {

Callers 1

NullNewRenderTargetFunction · 0.85

Calls 1

Tested by

no test coverage detected