mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 20:58:54 +00:00
VideoCommon: Move repeated point/line expansion code to ShaderGenCommon
This commit is contained in:
parent
0a42c534c3
commit
b567f3afcf
5 changed files with 89 additions and 117 deletions
|
@ -198,6 +198,13 @@ void GenerateVSOutputMembers(ShaderCode& object, APIType api_type, u32 texgens,
|
|||
void AssignVSOutputMembers(ShaderCode& object, std::string_view a, std::string_view b, u32 texgens,
|
||||
const ShaderHostConfig& host_config);
|
||||
|
||||
void GenerateLineOffset(ShaderCode& object, std::string_view indent0, std::string_view indent1,
|
||||
std::string_view pos_a, std::string_view pos_b, std::string_view sign);
|
||||
|
||||
void GenerateVSLineExpansion(ShaderCode& object, std::string_view indent, u32 texgens);
|
||||
|
||||
void GenerateVSPointExpansion(ShaderCode& object, std::string_view indent, u32 texgens);
|
||||
|
||||
// We use the flag "centroid" to fix some MSAA rendering bugs. With MSAA, the
|
||||
// pixel shader will be executed for each pixel which has at least one passed sample.
|
||||
// So there may be rendered pixels where the center of the pixel isn't in the primitive.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue