mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-22 13:25:51 +12:00
rework the lut system
This commit is contained in:
parent
90420160f2
commit
158be432fc
9 changed files with 273 additions and 152 deletions
25
include/renderer_mtl/mtl_lut_texture.hpp
Normal file
25
include/renderer_mtl/mtl_lut_texture.hpp
Normal file
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
#include <Metal/Metal.hpp>
|
||||
|
||||
namespace Metal {
|
||||
|
||||
class LutTexture {
|
||||
public:
|
||||
LutTexture(MTL::Device* device, MTL::TextureType type, MTL::PixelFormat pixelFormat, u32 width, u32 height, const char* name);
|
||||
~LutTexture();
|
||||
|
||||
u32 getNextIndex();
|
||||
|
||||
// Getters
|
||||
MTL::Texture* getTexture() { return texture; }
|
||||
|
||||
u32 getCurrentIndex() { return currentIndex; }
|
||||
|
||||
private:
|
||||
MTL::Texture* texture;
|
||||
|
||||
u32 currentIndex = 0;
|
||||
};
|
||||
|
||||
} // namespace Metal
|
Loading…
Add table
Add a link
Reference in a new issue