2020-10-21 10:52:12 +08:00
|
|
|
#include<hgl/graph/vulkan/VKShaderModuleMap.h>
|
2020-09-05 18:36:18 +08:00
|
|
|
#include<hgl/graph/vulkan/VKShaderModule.h>
|
|
|
|
|
|
|
|
VK_NAMESPACE_BEGIN
|
|
|
|
bool ShaderModuleMap::Add(const ShaderModule *sm)
|
|
|
|
{
|
|
|
|
if(!sm)return(false);
|
|
|
|
|
|
|
|
const VkShaderStageFlagBits stage=sm->GetStage();
|
|
|
|
|
|
|
|
if(this->KeyExist(stage))return(false);
|
|
|
|
|
|
|
|
return this->Map::Add(stage,sm);
|
|
|
|
}
|
|
|
|
VK_NAMESPACE_END
|