maybe finished, all examples test OK!

This commit is contained in:
2024-06-20 00:16:29 +08:00
parent 2f49e80122
commit 56b8798122
22 changed files with 177 additions and 67 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include<hgl/type/String.h>
#include<hgl/type/List.h>
#include<hgl/graph/VertexAttrib.h>
#include<hgl/graph/VKInterpolation.h>
#include<hgl/graph/VKSamplerType.h>
@@ -380,6 +381,8 @@ namespace hgl
Interpolation interpolation; //插值方式
};
using SVList=List<ShaderVariable>;
struct ShaderVariableArray
{
uint count;
@@ -531,9 +534,11 @@ namespace hgl
if(sv->interpolation!=Interpolation::Smooth)
{
output_string+=InterpolationName[size_t(sv->interpolation)];
output_string+=" ";
if(RangeCheck(sv->interpolation))
{
output_string+=InterpolationName[size_t(sv->interpolation)];
output_string+=" ";
}
}
output_string+=sv->type.GetTypename();