Skip to content

Commit

Permalink
fix clang format 2
Browse files Browse the repository at this point in the history
Signed-off-by: uedaki <[email protected]>
  • Loading branch information
Uedaki committed Feb 14, 2024
1 parent 81c978e commit d81189f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/testshade/simplerend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -741,22 +741,21 @@ SimpleRenderer::build_interpolated_getter(const ShaderGroup& group,
} else if (const OIIO::ParamValue* p = userdata.find_pv(param_name, type)) {
if (p->type().basetype == OIIO::TypeDesc::INT) {
if (p->type().aggregate == 1) {
spec.set(rs_get_attribute_constant_int,
((int*)p->data())[0]);
spec.set(rs_get_attribute_constant_int, ((int*)p->data())[0]);
return;
} else if (p->type().aggregate == 2) {
spec.set(rs_get_attribute_constant_int2,
((int*)p->data())[0], ((int*)p->data())[1]);
spec.set(rs_get_attribute_constant_int2, ((int*)p->data())[0],
((int*)p->data())[1]);
return;
} else if (p->type().aggregate == 3) {
spec.set(rs_get_attribute_constant_int3,
((int*)p->data())[0], ((int*)p->data())[1],
((int*)p->data())[2]);
return;
} else if (p->type().aggregate == 4) {
spec.set(rs_get_attribute_constant_int4,
((int*)p->data())[0], ((int*)p->data())[1],
((int*)p->data())[2], ((int*)p->data())[3]);
spec.set(rs_get_attribute_constant_int4, ((int*)p->data())[0],
((int*)p->data())[1], ((int*)p->data())[2],
((int*)p->data())[3]);
return;
}
} else if (p->type().basetype == OIIO::TypeDesc::FLOAT) {
Expand Down

0 comments on commit d81189f

Please sign in to comment.