fix(agc): preserve main interfaces in the layered rendering rebase
This commit is contained in:
parent
a103e48c8b
commit
13c4a2a6c6
|
|
@ -3,6 +3,7 @@
|
|||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
#include <exception>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
|
|
@ -10,7 +11,7 @@ namespace {
|
|||
|
||||
struct Module {
|
||||
std::vector<std::uint32_t> capabilities;
|
||||
std::vector<std::string_view> extensions;
|
||||
std::vector<std::string> extensions;
|
||||
bool layerOutput = false;
|
||||
std::uint32_t version = 0;
|
||||
};
|
||||
|
|
@ -38,7 +39,7 @@ bool has(const std::vector<std::uint32_t>& values, std::uint32_t value) {
|
|||
return false;
|
||||
}
|
||||
|
||||
bool named(const std::vector<std::string_view>& values, std::string_view value) {
|
||||
bool named(const std::vector<std::string>& values, std::string_view value) {
|
||||
for (const auto entry : values) {
|
||||
if (entry == value) return true;
|
||||
}
|
||||
|
|
@ -48,8 +49,8 @@ bool named(const std::vector<std::string_view>& values, std::string_view value)
|
|||
Module recompile(std::uint32_t control, bool layerExtension) {
|
||||
using namespace ShaderRecompiler;
|
||||
static const std::array<std::uint32_t, 5> code{0xf80000cfu, 0x00000000u, 0xf80008dfu, 0x01010101u, 0xbf810000u};
|
||||
static const std::array<std::uint32_t, 2> withExtension{1u, 5254u};
|
||||
static const std::array<std::uint32_t, 1> without{1u};
|
||||
static const std::array<std::uint32_t, 3> withExtension{1u, 32u, 5254u};
|
||||
static const std::array<std::uint32_t, 2> without{1u, 32u};
|
||||
ShaderVertexStageInfo vertex{};
|
||||
vertex.paClVsOutCntl = control;
|
||||
RecompileRequest request{};
|
||||
|
|
|
|||
Loading…
Reference in New Issue