Initial environment loading (not working)
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
#include "MinimalEngine.h"
|
||||
#include "Graphics/Graphics.h"
|
||||
#include "Graphics/Shader.h"
|
||||
#include <filesystem>
|
||||
|
||||
namespace Seele
|
||||
{
|
||||
DECLARE_REF(EnvironmentMapAsset)
|
||||
struct EnvironmentImportArgs {
|
||||
std::filesystem::path filePath;
|
||||
std::string importPath;
|
||||
};
|
||||
class EnvironmentLoader {
|
||||
public:
|
||||
EnvironmentLoader(Gfx::PGraphics graphic);
|
||||
~EnvironmentLoader();
|
||||
void importAsset(EnvironmentImportArgs args);
|
||||
|
||||
private:
|
||||
void import(EnvironmentImportArgs args, PEnvironmentMapAsset asset);
|
||||
Gfx::PGraphics graphics;
|
||||
Gfx::OVertexShader cubeRenderVertex;
|
||||
Gfx::OFragmentShader cubeRenderFrag;
|
||||
Gfx::ODescriptorLayout cubeRenderLayout;
|
||||
Gfx::OPipelineLayout cubePipelineLayout;
|
||||
Gfx::PGraphicsPipeline cubeRenderPipeline;
|
||||
Gfx::ORenderPass cubeRenderPass;
|
||||
Gfx::OViewport cubeRenderViewport;
|
||||
Gfx::OSampler cubeSampler;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user