Trying to fix invalid descriptorlayout
This commit is contained in:
@@ -1,30 +1,14 @@
|
||||
import Common;
|
||||
import Material;
|
||||
import VERTEX_INPUT_IMPORT;
|
||||
import MATERIAL_IMPORT;
|
||||
|
||||
struct ViewParams
|
||||
{
|
||||
float4x4 viewMatrix;
|
||||
float4x4 projectionMatrix;
|
||||
float4 cameraPos_WS;
|
||||
};
|
||||
|
||||
layout(set = 0, binding = 0)
|
||||
ParameterBlock<ViewParams> gViewParams;
|
||||
|
||||
|
||||
layout(set = 1)
|
||||
type_param TMaterial : IMaterial;
|
||||
ParameterBlock<TMaterial> gMaterial;
|
||||
import PrimitiveSceneData;
|
||||
|
||||
struct ModelParameter
|
||||
{
|
||||
float4x4 modelMatrix;
|
||||
}
|
||||
|
||||
[[vk::push_constant]]
|
||||
ConstantBuffer<ModelParameter> gModelParams;
|
||||
|
||||
struct VertexStageOutput
|
||||
{
|
||||
float4 position : SV_Position;
|
||||
|
||||
Reference in New Issue
Block a user