mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-19 21:42:59 +01:00
shaderc: Added in/out hash. Fixed shader binary backward compatibility.
This commit is contained in:
20
src/bgfx.cpp
20
src/bgfx.cpp
@@ -1392,6 +1392,26 @@ namespace bgfx
|
||||
return s_topologyName[bx::min(_topology, Topology::PointList)];
|
||||
}
|
||||
|
||||
const char* getShaderTypeName(uint32_t _magic)
|
||||
{
|
||||
if (isShaderType(_magic, 'C') )
|
||||
{
|
||||
return "Compute";
|
||||
}
|
||||
else if (isShaderType(_magic, 'F') )
|
||||
{
|
||||
return "Fragment";
|
||||
}
|
||||
else if (isShaderType(_magic, 'V') )
|
||||
{
|
||||
return "Vertex";
|
||||
}
|
||||
|
||||
BX_CHECK(false, "Invalid shader type!");
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static TextureFormat::Enum s_emulatedFormats[] =
|
||||
{
|
||||
TextureFormat::BC1,
|
||||
|
||||
Reference in New Issue
Block a user