Skip to content

Commit

Permalink
Fix CI compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom94 committed Jan 31, 2024
1 parent f45655b commit 829e20f
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions include/neural-graphics-primitives/common_device.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -621,30 +621,6 @@ inline NGP_HOST_DEVICE vec2 focal_length_to_fov(const ivec2& resolution, const v
return 2.0f * 180.0f / PI() * atan(vec2(resolution) / (focal_length * 2.0f));
}

inline NGP_HOST_DEVICE float4 to_float4(const vec4& x) {
return {x.x, x.y, x.z, x.w};
}

inline NGP_HOST_DEVICE float3 to_float3(const vec3& x) {
return {x.x, x.y, x.z};
}

inline NGP_HOST_DEVICE float2 to_float2(const vec2& x) {
return {x.x, x.y};
}

inline NGP_HOST_DEVICE vec4 to_vec4(const float4& x) {
return {x.x, x.y, x.z, x.w};
}

inline NGP_HOST_DEVICE vec3 to_vec3(const float3& x) {
return {x.x, x.y, x.z};
}

inline NGP_HOST_DEVICE vec2 to_vec2(const float2& x) {
return {x.x, x.y};
}

inline NGP_HOST_DEVICE mat4x3 camera_log_lerp(const mat4x3& a, const mat4x3& b, float t) {
return mat_exp(mat_log(mat4(b) * inverse(mat4(a))) * t) * mat4(a);
}
Expand Down

0 comments on commit 829e20f

Please sign in to comment.