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

Function CheckComputeResource

engine/gamesys/src/gamesys/scripts/script_compute.cpp:63–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 } g_ComputeModule;
62
63 static inline ComputeResource* CheckComputeResource(lua_State* L, int index)
64 {
65 dmhash_t path_hash = dmScript::CheckHashOrString(L, index);
66 return (ComputeResource*) CheckResource(L, g_ComputeModule.m_Factory, path_hash, "computec");
67 }
68
69 /*# gets texture samplers from a compute program
70 * Returns a table of all the texture samplers in the compute program. This function will return all the texture samplers

Callers 6

Compute_GetSamplersFunction · 0.85
Compute_GetConstantsFunction · 0.85
Compute_GetTexturesFunction · 0.85
Compute_SetSamplersFunction · 0.85
Compute_SetConstantsFunction · 0.85
Compute_SetTexturesFunction · 0.85

Calls 2

CheckHashOrStringFunction · 0.85
CheckResourceFunction · 0.85

Tested by

no test coverage detected