mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 16:28:33 -05:00
shader: Initial OpenGL implementation
This commit is contained in:
@ -29,22 +29,6 @@ class Memorymanager;
|
||||
|
||||
namespace VideoCommon {
|
||||
|
||||
struct TextureHandle {
|
||||
explicit TextureHandle(u32 data, bool via_header_index) {
|
||||
if (via_header_index) {
|
||||
image = data;
|
||||
sampler = data;
|
||||
} else {
|
||||
const Tegra::Texture::TextureHandle handle{data};
|
||||
image = handle.tic_id;
|
||||
sampler = via_header_index ? image : handle.tsc_id.Value();
|
||||
}
|
||||
}
|
||||
|
||||
u32 image;
|
||||
u32 sampler;
|
||||
};
|
||||
|
||||
class GenericEnvironment : public Shader::Environment {
|
||||
public:
|
||||
explicit GenericEnvironment() = default;
|
||||
|
Reference in New Issue
Block a user