[D3D12] Cleanup primitive types and front/back facing

This commit is contained in:
Triang3l
2019-07-13 22:25:03 +03:00
parent a16a746432
commit 4825e69fda
12 changed files with 323 additions and 303 deletions

View File

@@ -587,6 +587,10 @@ class Shader {
// Whether the shader is identified as a vertex or pixel shader.
ShaderType type() const { return shader_type_; }
// Tessellation patch primitive type for a vertex shader translated into a
// domain shader, or PrimitiveType::kNone for a normal vertex shader.
PrimitiveType patch_primitive_type() const { return patch_primitive_type_; }
// Microcode dwords in host endianness.
const std::vector<uint32_t>& ucode_data() const { return ucode_data_; }
uint64_t ucode_data_hash() const { return ucode_data_hash_; }
@@ -667,6 +671,7 @@ class Shader {
friend class ShaderTranslator;
ShaderType shader_type_;
PrimitiveType patch_primitive_type_ = PrimitiveType::kNone;
std::vector<uint32_t> ucode_data_;
uint64_t ucode_data_hash_;