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

Function cgpu_create_sampler

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

Source from the content-addressed store, hash-verified

1117}
1118
1119CGPUSamplerId cgpu_create_sampler(CGPUDeviceId device, const struct CGPUSamplerDescriptor* desc)
1120{
1121 SkrCZoneN(zz, "CGPUCreateSampler", 1);
1122
1123 cgpu_assert(device != CGPU_NULLPTR && "fatal: call on NULL device!");
1124 cgpu_assert(device->proc_table_cache->create_sampler && "create_sampler Proc Missing!");
1125 CGPUProcCreateSampler fn_create_sampler = device->proc_table_cache->create_sampler;
1126 CGPUSampler* sampler = (CGPUSampler*)fn_create_sampler(device, desc);
1127 sampler->device = device;
1128
1129 SkrCZoneEnd(zz);
1130
1131 return sampler;
1132}
1133
1134void cgpu_free_sampler(CGPUSamplerId sampler)
1135{

Callers 11

create_api_objectsMethod · 0.85
InstallMethod · 0.85
initMethod · 0.85
create_sampled_textureFunction · 0.85
create_sampled_textureFunction · 0.85
create_sampled_textureFunction · 0.85
create_api_objectsMethod · 0.85
create_api_objectsMethod · 0.85
create_api_objectsFunction · 0.85
create_api_objectsMethod · 0.85
initializeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected