Publish renderer feature snapshot for canvas gates
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
#include "renderer_api/renderer_api.h"
|
||||
#include "util.h"
|
||||
|
||||
bool check_uniform_uniqueness();
|
||||
@@ -108,6 +109,7 @@ class ShaderManager
|
||||
{
|
||||
static std::map<kShader, Shader> m_shaders;
|
||||
static Shader* m_current;
|
||||
static pp::renderer::RenderDeviceFeatures m_render_device_features;
|
||||
public:
|
||||
static bool ext_framebuffer_fetch;
|
||||
static bool ext_float32;
|
||||
@@ -127,5 +129,7 @@ public:
|
||||
static void u_int(kShaderUniform id, int i);
|
||||
static void u_int(const char* name, int i);
|
||||
static void u_float(kShaderUniform id, float f);
|
||||
static void set_render_device_features(pp::renderer::RenderDeviceFeatures features) noexcept;
|
||||
static pp::renderer::RenderDeviceFeatures render_device_features() noexcept;
|
||||
static void invalidate();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user