[D3D12] Cleanup primitive types and front/back facing
This commit is contained in:
@@ -32,8 +32,9 @@ class ShaderTranslator {
|
||||
// DEPRECATED(benvanik): remove this when shader cache is removed.
|
||||
bool GatherAllBindingInformation(Shader* shader);
|
||||
|
||||
bool Translate(Shader* shader, xenos::xe_gpu_program_cntl_t cntl);
|
||||
bool Translate(Shader* shader);
|
||||
bool Translate(Shader* shader, PrimitiveType patch_type,
|
||||
xenos::xe_gpu_program_cntl_t cntl);
|
||||
bool Translate(Shader* shader, PrimitiveType patch_type);
|
||||
|
||||
protected:
|
||||
ShaderTranslator();
|
||||
@@ -45,6 +46,9 @@ class ShaderTranslator {
|
||||
uint32_t register_count() const { return register_count_; }
|
||||
// True if the current shader is a vertex shader.
|
||||
bool is_vertex_shader() const { return shader_type_ == ShaderType::kVertex; }
|
||||
// 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_; }
|
||||
// True if the current shader is a pixel shader.
|
||||
bool is_pixel_shader() const { return shader_type_ == ShaderType::kPixel; }
|
||||
const Shader::ConstantRegisterMap& constant_register_map() const {
|
||||
@@ -176,7 +180,7 @@ class ShaderTranslator {
|
||||
bool disable_implicit_early_z;
|
||||
};
|
||||
|
||||
bool TranslateInternal(Shader* shader);
|
||||
bool TranslateInternal(Shader* shader, PrimitiveType patch_type);
|
||||
|
||||
void MarkUcodeInstruction(uint32_t dword_offset);
|
||||
void AppendUcodeDisasm(char c);
|
||||
@@ -225,6 +229,7 @@ class ShaderTranslator {
|
||||
|
||||
// Input shader metadata and microcode.
|
||||
ShaderType shader_type_;
|
||||
PrimitiveType patch_primitive_type_;
|
||||
const uint32_t* ucode_dwords_;
|
||||
size_t ucode_dword_count_;
|
||||
xenos::xe_gpu_program_cntl_t program_cntl_;
|
||||
|
||||
Reference in New Issue
Block a user