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

Function WebGPUNewTexture

engine/graphics/src/webgpu/graphics_webgpu.cpp:3206–3212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3204}
3205
3206static HTexture WebGPUNewTexture(HContext _context, const TextureCreationParams& params)
3207{
3208 TRACE_CALL;
3209 WebGPUContext* context = (WebGPUContext*)_context;
3210 WebGPUTexture* texture = WebGPUNewTextureInternal(params);
3211 return StoreAssetInContainer(context->m_BaseContext.m_AssetHandleContainer, texture, ASSET_TYPE_TEXTURE);
3212}
3213
3214static void WebGPUDeleteTexture(HContext context, HTexture _texture)
3215{

Callers

nothing calls this directly

Calls 2

WebGPUNewTextureInternalFunction · 0.85
StoreAssetInContainerFunction · 0.85

Tested by

no test coverage detected