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

Function AssetHandleToString

engine/render/src/render/render_script.cpp:1077–1083  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1075 }
1076
1077 static inline const char* AssetHandleToString(dmGraphics::HAssetHandle asset_handle, char* buf, uint32_t buf_size)
1078 {
1079 dmSnPrintf(buf, buf_size, "(asset %d type=%s)",
1080 dmGraphics::GetOpaqueHandle(asset_handle),
1081 dmGraphics::GetAssetTypeLiteral(dmGraphics::GetAssetType(asset_handle)));
1082 return buf;
1083 }
1084
1085 static dmGraphics::HAssetHandle CheckAssetHandle(lua_State* L, int index, dmGraphics::HContext graphics_context, dmGraphics::AssetType expected_type)
1086 {

Callers 2

CheckAssetHandleFunction · 0.85

Calls 4

dmSnPrintfFunction · 0.85
GetOpaqueHandleFunction · 0.85
GetAssetTypeLiteralFunction · 0.85
GetAssetTypeFunction · 0.85

Tested by

no test coverage detected