MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / cgpu_free_texture

Function cgpu_free_texture

modules/engine/graphics/src/common/cgpu.c:1104–1117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1102}
1103
1104void cgpu_free_texture(CGPUTextureId texture)
1105{
1106 SkrCZoneN(zz, "CGPUFreeTexture", 1);
1107
1108 cgpu_assert(texture != CGPU_NULLPTR && "fatal: call on NULL texture!");
1109 const CGPUDeviceId device = texture->device;
1110 cgpu_assert(device != CGPU_NULLPTR && "fatal: call on NULL device!");
1111
1112 CGPUProcFreeTexture fn_free_texture = device->proc_table_cache->free_texture;
1113 cgpu_assert(fn_free_texture && "free_texture Proc Missing!");
1114 fn_free_texture(texture);
1115
1116 SkrCZoneEnd(zz);
1117}
1118
1119CGPUSamplerId cgpu_create_sampler(CGPUDeviceId device, const struct CGPUSamplerDescriptor* desc)
1120{

Callers 15

UnloadMethod · 0.85
finalizeMethod · 0.85
reset_beginMethod · 0.85
finalizeMethod · 0.85
try_aliasing_allocateMethod · 0.85
~SkrUpdatableImageMethod · 0.85
destroyMethod · 0.85
updateMethod · 0.85
finalizeFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_allMethod · 0.68