mirror of https://github.com/RPCS3/rpcs3.git
d3d12: Update
This commit is contained in:
parent
07449abfc6
commit
05d6c8df60
|
@ -35,8 +35,6 @@ std::string D3D12FragmentDecompiler::getFunction(enum class FUNCTION f)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
abort();
|
abort();
|
||||||
case FUNCTION::FUNCTION_SATURATE:
|
|
||||||
return "saturate";
|
|
||||||
case FUNCTION::FUNCTION_DP2:
|
case FUNCTION::FUNCTION_DP2:
|
||||||
return "dot($0.xy, $1.xy).xxxx";
|
return "dot($0.xy, $1.xy).xxxx";
|
||||||
case FUNCTION::FUNCTION_DP2A:
|
case FUNCTION::FUNCTION_DP2A:
|
||||||
|
@ -72,6 +70,11 @@ std::string D3D12FragmentDecompiler::getFunction(enum class FUNCTION f)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string D3D12FragmentDecompiler::saturate(const std::string & code)
|
||||||
|
{
|
||||||
|
return "saturate(" + code + ")";
|
||||||
|
}
|
||||||
|
|
||||||
void D3D12FragmentDecompiler::insertHeader(std::stringstream & OS)
|
void D3D12FragmentDecompiler::insertHeader(std::stringstream & OS)
|
||||||
{
|
{
|
||||||
OS << "// Header" << std::endl;
|
OS << "// Header" << std::endl;
|
||||||
|
|
|
@ -10,6 +10,7 @@ class D3D12FragmentDecompiler : public FragmentProgramDecompiler
|
||||||
protected:
|
protected:
|
||||||
virtual std::string getFloatTypeName(size_t elementCount) override;
|
virtual std::string getFloatTypeName(size_t elementCount) override;
|
||||||
virtual std::string getFunction(enum class FUNCTION) override;
|
virtual std::string getFunction(enum class FUNCTION) override;
|
||||||
|
virtual std::string saturate(const std::string &code) override;
|
||||||
|
|
||||||
virtual void insertHeader(std::stringstream &OS) override;
|
virtual void insertHeader(std::stringstream &OS) override;
|
||||||
virtual void insertIntputs(std::stringstream &OS) override;
|
virtual void insertIntputs(std::stringstream &OS) override;
|
||||||
|
|
Loading…
Reference in New Issue