improved lots of stuff
This commit is contained in:
31
materialsystem/__build.cpp
Normal file
31
materialsystem/__build.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#include "helper.h"
|
||||
#include "c.h"
|
||||
#include "ld.h"
|
||||
#include "tier1/utlstring.h"
|
||||
#include "tier1/commandline.h"
|
||||
|
||||
CUtlVector<CUtlString> MaterialSystem_CompiledFiles = {
|
||||
"materialsystem/vulkan/material.cpp",
|
||||
"materialsystem/vulkan/materialsystem.cpp",
|
||||
"materialsystem/vulkan/shader.cpp",
|
||||
"materialsystem/vulkan/vulkan_state.cpp",
|
||||
};
|
||||
CUtlString material_lib;
|
||||
|
||||
DECLARE_BUILD_STAGE(MaterialSystem)
|
||||
{
|
||||
CProject_t compileProject = {};
|
||||
LinkProject_t ldProject = {};
|
||||
|
||||
compileProject.m_szName = "MaterialSystem";
|
||||
compileProject.files = MaterialSystem_CompiledFiles;
|
||||
compileProject.includeDirectories = all_IncludeDirectories;
|
||||
compileProject.bFPIC = true;
|
||||
ldProject = ccompiler->Compile(&compileProject);
|
||||
ldProject.linkType = ELINK_STATIC_LIBRARY;
|
||||
|
||||
CUtlString outputProject = linker->Link(&ldProject);
|
||||
material_lib = outputProject;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
#include "materialsystem/imaterialsystem.h"
|
||||
|
||||
class CVkRenderingContext
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
CVkRenderingContext g_vkRenderingContext;
|
||||
|
||||
class CVkMaterialSystem: public IMaterialSystem
|
||||
{
|
||||
public:
|
||||
virtual void Init();
|
||||
virtual void Frame( float fDeltaTime );
|
||||
virtual void Shutdown();
|
||||
|
||||
IRenderContext *GetRenderContext();
|
||||
};
|
||||
|
||||
CVkMaterialSystem g_vkMaterialSystem;
|
||||
IMaterialSystem *materials = &g_vkMaterialSystem;
|
||||
|
||||
|
||||
void CVkMaterialSystem::Init()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CVkMaterialSystem::Frame( float fDeltaTime )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CVkMaterialSystem::Shutdown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
0
materialsystem/vulkan/vulkan_state.h
Normal file
0
materialsystem/vulkan/vulkan_state.h
Normal file
Reference in New Issue
Block a user