mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 07:38:41 +00:00
clang format
This commit is contained in:
parent
77cfdb18fe
commit
84d745fcc4
3 changed files with 5 additions and 3 deletions
|
@ -216,7 +216,8 @@ Id EmitGetAttribute(EmitContext& ctx, IR::Attribute attr, u32 comp, u32 index) {
|
||||||
|
|
||||||
Id result;
|
Id result;
|
||||||
if (param.is_loaded) {
|
if (param.is_loaded) {
|
||||||
// Attribute is either default or manually interpolated. The id points to an already loaded vector.
|
// Attribute is either default or manually interpolated. The id points to an already
|
||||||
|
// loaded vector.
|
||||||
result = ctx.OpCompositeExtract(param.component_type, param.id, comp);
|
result = ctx.OpCompositeExtract(param.component_type, param.id, comp);
|
||||||
} else if (param.num_components > 1) {
|
} else if (param.num_components > 1) {
|
||||||
// Attribute is a vector and we need to access a specific component.
|
// Attribute is a vector and we need to access a specific component.
|
||||||
|
|
|
@ -226,7 +226,8 @@ void EmitContext::DefineInterpolatedAttribs() {
|
||||||
if (!profile.needs_manual_interpolation) {
|
if (!profile.needs_manual_interpolation) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Iterate all input attributes, load them and manually interpolate with barycentric coordinates.
|
// Iterate all input attributes, load them and manually interpolate with barycentric
|
||||||
|
// coordinates.
|
||||||
for (s32 i = 0; i < runtime_info.fs_info.num_inputs; i++) {
|
for (s32 i = 0; i < runtime_info.fs_info.num_inputs; i++) {
|
||||||
const auto& input = runtime_info.fs_info.inputs[i];
|
const auto& input = runtime_info.fs_info.inputs[i];
|
||||||
const u32 semantic = input.param_index;
|
const u32 semantic = input.param_index;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue