| 1102 | } |
| 1103 | |
| 1104 | void 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 | |
| 1119 | CGPUSamplerId cgpu_create_sampler(CGPUDeviceId device, const struct CGPUSamplerDescriptor* desc) |
| 1120 | { |
no outgoing calls