mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
d3d12: Update
This commit is contained in:
parent
07449abfc6
commit
05d6c8df60
2 changed files with 6 additions and 2 deletions
|
@ -35,8 +35,6 @@ std::string D3D12FragmentDecompiler::getFunction(enum class FUNCTION f)
|
|||
{
|
||||
default:
|
||||
abort();
|
||||
case FUNCTION::FUNCTION_SATURATE:
|
||||
return "saturate";
|
||||
case FUNCTION::FUNCTION_DP2:
|
||||
return "dot($0.xy, $1.xy).xxxx";
|
||||
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)
|
||||
{
|
||||
OS << "// Header" << std::endl;
|
||||
|
|
|
@ -10,6 +10,7 @@ class D3D12FragmentDecompiler : public FragmentProgramDecompiler
|
|||
protected:
|
||||
virtual std::string getFloatTypeName(size_t elementCount) 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 insertIntputs(std::stringstream &OS) override;
|
||||
|
|
Loading…
Add table
Reference in a new issue