@@ -60,38 +60,38 @@ enum class Compiler { FXC, DXC };
6060using InterStageShaderVariablesMask = std::bitset<tint::hlsl::writer::kMaxInterStageLocations >;
6161using SubstituteOverrideConfig = std::unordered_map<tint::OverrideId, double >;
6262
63- #define HLSL_COMPILATION_REQUEST_MEMBERS (X ) \
64- X (ShaderModuleBase::ShaderModuleHash, shaderModuleHash) \
65- X (CacheKey::UnsafeUnkeyedValue <ShaderModuleBase::ScopedUseTintProgram>, inputProgram) \
66- X (std::string_view, entryPointName) \
67- X (SingleShaderStage, stage) \
68- X (uint32_t , shaderModel) \
69- X (uint32_t , compileFlags) \
70- X (Compiler, compiler) \
71- X (uint64_t , compilerVersion) \
72- X (std::wstring_view, dxcShaderProfile) \
73- X (std::string_view, fxcShaderProfile) \
74- X (uint32_t , firstIndexOffsetShaderRegister) \
75- X (uint32_t , firstIndexOffsetRegisterSpace) \
76- X (tint::hlsl::writer::Options, tintOptions) \
77- X (SubstituteOverrideConfig, substituteOverrideConfig) \
78- X (LimitsForCompilationRequest, limits) \
79- X (CacheKey::UnsafeUnkeyedValue <LimitsForCompilationRequest>, adapterSupportedLimits) \
80- X (uint32_t , maxSubgroupSize) \
81- X (bool , disableSymbolRenaming) \
82- X (bool , dumpShaders) \
63+ #define HLSL_COMPILATION_REQUEST_MEMBERS (X ) \
64+ X (ShaderModuleBase::ShaderModuleHash, shaderModuleHash) \
65+ X (UnsafeUnserializedValue <ShaderModuleBase::ScopedUseTintProgram>, inputProgram) \
66+ X (std::string_view, entryPointName) \
67+ X (SingleShaderStage, stage) \
68+ X (uint32_t , shaderModel) \
69+ X (uint32_t , compileFlags) \
70+ X (Compiler, compiler) \
71+ X (uint64_t , compilerVersion) \
72+ X (std::wstring_view, dxcShaderProfile) \
73+ X (std::string_view, fxcShaderProfile) \
74+ X (uint32_t , firstIndexOffsetShaderRegister) \
75+ X (uint32_t , firstIndexOffsetRegisterSpace) \
76+ X (tint::hlsl::writer::Options, tintOptions) \
77+ X (SubstituteOverrideConfig, substituteOverrideConfig) \
78+ X (LimitsForCompilationRequest, limits) \
79+ X (UnsafeUnserializedValue <LimitsForCompilationRequest>, adapterSupportedLimits) \
80+ X (uint32_t , maxSubgroupSize) \
81+ X (bool , disableSymbolRenaming) \
82+ X (bool , dumpShaders) \
8383 X (bool , useTintIR)
8484
85- #define D3D_BYTECODE_COMPILATION_REQUEST_MEMBERS (X ) \
86- X (bool , hasShaderF16Feature) \
87- X (uint32_t , compileFlags) \
88- X (Compiler, compiler) \
89- X (uint64_t , compilerVersion) \
90- X (std::wstring_view, dxcShaderProfile) \
91- X (std::string_view, fxcShaderProfile) \
92- X (CacheKey::UnsafeUnkeyedValue <pD3DCompile>, d3dCompile) \
93- X (CacheKey::UnsafeUnkeyedValue <IDxcLibrary*>, dxcLibrary) \
94- X (CacheKey::UnsafeUnkeyedValue <IDxcCompiler3*>, dxcCompiler)
85+ #define D3D_BYTECODE_COMPILATION_REQUEST_MEMBERS (X ) \
86+ X (bool , hasShaderF16Feature) \
87+ X (uint32_t , compileFlags) \
88+ X (Compiler, compiler) \
89+ X (uint64_t , compilerVersion) \
90+ X (std::wstring_view, dxcShaderProfile) \
91+ X (std::string_view, fxcShaderProfile) \
92+ X (UnsafeUnserializedValue <pD3DCompile>, d3dCompile) \
93+ X (UnsafeUnserializedValue <IDxcLibrary*>, dxcLibrary) \
94+ X (UnsafeUnserializedValue <IDxcCompiler3*>, dxcCompiler)
9595
9696DAWN_SERIALIZABLE (struct , HlslCompilationRequest, HLSL_COMPILATION_REQUEST_MEMBERS){};
9797#undef HLSL_COMPILATION_REQUEST_MEMBERS
@@ -104,7 +104,7 @@ DAWN_SERIALIZABLE(struct,
104104#define D3D_COMPILATION_REQUEST_MEMBERS (X ) \
105105 X (HlslCompilationRequest, hlsl) \
106106 X (D3DBytecodeCompilationRequest, bytecode) \
107- X (CacheKey::UnsafeUnkeyedValue <dawn::platform::Platform*>, tracePlatform)
107+ X (UnsafeUnserializedValue <dawn::platform::Platform*>, tracePlatform)
108108
109109DAWN_MAKE_CACHE_REQUEST (D3DCompilationRequest, D3D_COMPILATION_REQUEST_MEMBERS);
110110#undef D3D_COMPILATION_REQUEST_MEMBERS
0 commit comments