renamed to ShaderBufferSource from ShaderBuffer
This commit is contained in:
parent
21c7f36d03
commit
b63edb2f89
2
CMCore
2
CMCore
@ -1 +1 @@
|
||||
Subproject commit b5ef4424d47569447d374f0e86f50e8e04444148
|
||||
Subproject commit 3f5baa99d0c0a76135b48fa67b43b9c4d58a8332
|
@ -1 +1 @@
|
||||
Subproject commit 94686e90e0b8d09319809eda7233b9bc92b65368
|
||||
Subproject commit 2b286a47b677b285e849fc5fa5afe132ed33948f
|
@ -62,7 +62,9 @@ public:
|
||||
|
||||
void WaitIdle ()const {vkDeviceWaitIdle(attr->device);}
|
||||
|
||||
#ifdef _DEBUG
|
||||
DebugUtils * GetDebugUtils (){return attr->debug_utils;}
|
||||
#endif//_DEBUG
|
||||
|
||||
public:
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include<hgl/graph/mtl/StdMaterial.h>
|
||||
#include<hgl/graph/mtl/ShaderBuffer.h>
|
||||
#include<hgl/graph/mtl/ShaderBufferSource.h>
|
||||
#include<hgl/math/Vector.h>
|
||||
STD_MTL_NAMESPACE_BEGIN
|
||||
namespace blinnphong
|
||||
|
@ -1,18 +0,0 @@
|
||||
#ifndef HGL_GRAPH_MTL_SHADER_BUFFER_INCLUDE
|
||||
#define HGL_GRAPH_MTL_SHADER_BUFFER_INCLUDE
|
||||
|
||||
#include<hgl/type/DataType.h>
|
||||
|
||||
namespace hgl
|
||||
{
|
||||
namespace graph
|
||||
{
|
||||
struct ShaderBufferSource
|
||||
{
|
||||
const char *struct_name;
|
||||
const char *name;
|
||||
const char *codes;
|
||||
};
|
||||
}//namespace graph
|
||||
}//namespace hgl
|
||||
#endif//HGL_GRAPH_MTL_SHADER_BUFFER_INCLUDE
|
11
inc/hgl/graph/mtl/ShaderBufferSource.h
Normal file
11
inc/hgl/graph/mtl/ShaderBufferSource.h
Normal file
@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
namespace hgl::graph
|
||||
{
|
||||
struct ShaderBufferSource
|
||||
{
|
||||
const char *struct_name;
|
||||
const char *name;
|
||||
const char *codes;
|
||||
};
|
||||
}//namespace hgl::graph
|
@ -2,21 +2,19 @@
|
||||
|
||||
#include<hgl/type/String.h>
|
||||
|
||||
#define STD_MTL_NAMESPACE_BEGIN namespace hgl{namespace graph{namespace mtl{
|
||||
#define STD_MTL_NAMESPACE_END }}}
|
||||
#define STD_MTL_NAMESPACE_BEGIN namespace hgl::graph::mtl{
|
||||
#define STD_MTL_NAMESPACE_END }
|
||||
|
||||
#define STD_MTL_NAMESPACE hgl::graph::mtl
|
||||
#define STD_MTL_NAMESPACE_USING using namespace STD_MTL_NAMESPACE;
|
||||
|
||||
#define STD_MTL_FUNC_NAMESPACE_BEGIN namespace hgl{namespace graph{namespace mtl{namespace func{
|
||||
#define STD_MTL_FUNC_NAMESPACE_END }}}}
|
||||
#define STD_MTL_FUNC_NAMESPACE_BEGIN namespace hgl::graph::mtl::func{
|
||||
#define STD_MTL_FUNC_NAMESPACE_END }
|
||||
|
||||
#define STD_MTL_FUNC_NAMESPACE hgl::graph::mtl::func
|
||||
#define STD_MTL_FUNC_NAMESPACE_USING using namespace STD_MTL_FUNC_NAMESPACE;
|
||||
|
||||
namespace hgl
|
||||
{
|
||||
namespace graph
|
||||
namespace hgl::graph
|
||||
{
|
||||
class ShaderCreateInfoVertex;
|
||||
class ShaderCreateInfoGeometry;
|
||||
@ -55,5 +53,4 @@ namespace hgl
|
||||
virtual MaterialCreateInfo *Create();
|
||||
};//class StdMaterial
|
||||
}//namespace mtl
|
||||
}//namespace graph
|
||||
}//namespace hgl
|
||||
}//namespace hgl::graph
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include<hgl/graph/mtl/StdMaterial.h>
|
||||
#include<hgl/graph/mtl/ShaderBuffer.h>
|
||||
#include<hgl/graph/mtl/ShaderBufferSource.h>
|
||||
|
||||
STD_MTL_NAMESPACE_BEGIN
|
||||
constexpr const ShaderBufferSource SBS_ViewportInfo=
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include<hgl/graph/mtl/StdMaterial.h>
|
||||
#include<hgl/graph/mtl/ShaderBuffer.h>
|
||||
#include<hgl/graph/mtl/ShaderBufferSource.h>
|
||||
|
||||
STD_MTL_NAMESPACE_BEGIN
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include<hgl/shadergen/ShaderCreateInfoMap.h>
|
||||
#include<hgl/graph/RenderTargetOutputConfig.h>
|
||||
#include<hgl/graph/mtl/MaterialConfig.h>
|
||||
#include<hgl/graph/mtl/ShaderBuffer.h>
|
||||
#include<hgl/graph/mtl/ShaderBufferSource.h>
|
||||
#include<hgl/graph/VKSamplerType.h>
|
||||
|
||||
namespace hgl::graph
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include<hgl/graph/VKShaderDescriptorSet.h>
|
||||
#include<hgl/graph/mtl/ShaderBuffer.h>
|
||||
#include<hgl/graph/mtl/ShaderBufferSource.h>
|
||||
#include<hgl/type/Map.h>
|
||||
|
||||
namespace hgl{namespace graph{
|
||||
|
@ -79,7 +79,7 @@ SET(STD_MTL_3D_SOURCE_FILES ${STD_MTL_HEADER_PATH}/Material3DCreateConfig.h
|
||||
|
||||
SET(STD_MTL_SOURCE ${STD_MTL_HEADER_PATH}/MaterialConfig.h
|
||||
${STD_MTL_HEADER_PATH}/StdMaterial.h
|
||||
${STD_MTL_HEADER_PATH}/ShaderBuffer.h
|
||||
${STD_MTL_HEADER_PATH}/ShaderBufferSource.h
|
||||
StandardMaterial.cpp
|
||||
MaterialFileData.h
|
||||
MaterialFileLoader.cpp)
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include"MFCamera.h"
|
||||
#include<hgl/graph/mtl/ShaderBuffer.h>
|
||||
#include<hgl/graph/mtl/ShaderBufferSource.h>
|
||||
|
||||
STD_MTL_NAMESPACE_BEGIN
|
||||
namespace func
|
||||
|
Loading…
x
Reference in New Issue
Block a user