Basic UI quad, yay
This commit is contained in:
@@ -52,39 +52,6 @@ static SlangStage getStageFromShaderType(ShaderType type)
|
||||
}
|
||||
}
|
||||
|
||||
/*static void createMixedDescriptorLayout(PDescriptorLayout layout, VariableLayoutReflection* parameter)
|
||||
{
|
||||
//std::cout << "category: " << (uint32)parameter->ge << std::endl;
|
||||
uint32 categoryCount = parameter->getCategoryCount();
|
||||
std::cout << "Mixed parameter " << parameter->getName() << " with categories: " << std::endl;
|
||||
for(uint32 i = 0; i < categoryCount; ++i)
|
||||
{
|
||||
ParameterCategory category = parameter->getCategoryByIndex(i);
|
||||
uint32 offset = parameter->getOffset(category);
|
||||
uint32 space = parameter->getBindingSpace(category);
|
||||
std::cout << "category: " << category << std::endl << " offset: " << offset << std::endl << " space: " << space << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
static Gfx::SeDescriptorType getTypeFromKind(slang::TypeReflection::Kind kind)
|
||||
{
|
||||
switch (kind)
|
||||
{
|
||||
case slang::TypeReflection::Kind::ConstantBuffer:
|
||||
case slang::TypeReflection::Kind::GenericTypeParameter:
|
||||
case slang::TypeReflection::Kind::ParameterBlock:
|
||||
return Gfx::SE_DESCRIPTOR_TYPE_UNIFORM_BUFFER;
|
||||
case slang::TypeReflection::Kind::ShaderStorageBuffer:
|
||||
return Gfx::SE_DESCRIPTOR_TYPE_STORAGE_BUFFER;
|
||||
case slang::TypeReflection::Kind::TextureBuffer:
|
||||
return Gfx::SE_DESCRIPTOR_TYPE_SAMPLED_IMAGE;
|
||||
case slang::TypeReflection::Kind::SamplerState:
|
||||
return Gfx::SE_DESCRIPTOR_TYPE_SAMPLER;
|
||||
default:
|
||||
return Gfx::SE_DESCRIPTOR_TYPE_MAX_ENUM;
|
||||
}
|
||||
}*/
|
||||
|
||||
void Shader::create(const ShaderCreateInfo& createInfo)
|
||||
{
|
||||
entryPointName = createInfo.entryPoint;
|
||||
|
||||
Reference in New Issue
Block a user