I gues Shader2 starting to come together.

This commit is contained in:
2024-12-23 23:21:47 -06:00
parent 698aeb2afc
commit 2b36a12335
9 changed files with 179 additions and 56 deletions

View File

@ -11,4 +11,5 @@ target_sources(${DAWN_TARGET_NAME}
SimpleTexturedShader.cpp
UIShader.cpp
ShaderParameter.cpp
ShaderProgram2.cpp
)

View File

@ -0,0 +1,28 @@
// Copyright (c) 2024 Dominic Masters
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#include "ShaderProgram2.hpp"
using namespace Dawn;
void ShaderEntry::init(
const SlangStage &stage,
const std::string &code
) {
}
ShaderEntry::~ShaderEntry() {
}
// // //
void ShaderProgram2::init(
const std::vector<std::shared_ptr<ShaderEntry>> &entries
) {
IShaderProgram2::init(entries);
}
ShaderProgram2::~ShaderProgram2() {
}

View File

@ -0,0 +1,28 @@
// Copyright (c) 2024 Dominic Masters
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#pragma once
#include "display/shader/IShaderProgram2.hpp"
namespace Dawn {
class ShaderEntry {
protected:
public:
void init(
const SlangStage &stage,
const std::string &code
);
~ShaderEntry();
};
class ShaderProgram2 : public IShaderProgram2 {
public:
void init(
const std::vector<std::shared_ptr<ShaderEntry>> &entries
) override;
~ShaderProgram2();
};
}