mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 12:59:14 +12:00
load shader source
This commit is contained in:
parent
d41e77491a
commit
6123a4a604
1 changed files with 6 additions and 1 deletions
|
@ -1,7 +1,11 @@
|
|||
#include "renderer_mtl/renderer_mtl.hpp"
|
||||
|
||||
#include <cmrc/cmrc.hpp>
|
||||
|
||||
#include "SDL_metal.h"
|
||||
|
||||
CMRC_DECLARE(RendererMTL);
|
||||
|
||||
RendererMTL::RendererMTL(GPU& gpu, const std::array<u32, regNum>& internalRegs, const std::array<u32, extRegNum>& externalRegs)
|
||||
: Renderer(gpu, internalRegs, externalRegs) {}
|
||||
RendererMTL::~RendererMTL() {}
|
||||
|
@ -42,7 +46,8 @@ void RendererMTL::initGraphicsContext(SDL_Window* window) {
|
|||
topScreenTexture = device->newTexture(descriptor);
|
||||
|
||||
// Pipelines
|
||||
// TODO
|
||||
auto mtlResources = cmrc::RendererMTL::get_filesystem();
|
||||
auto shaderSource = mtlResources.open("metal_shaders.metal");
|
||||
}
|
||||
|
||||
void RendererMTL::clearBuffer(u32 startAddress, u32 endAddress, u32 value, u32 control) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue