Skip to content

Commit

Permalink
github: delete .github/workflows/clang-format.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
w3ntao committed Jan 5, 2025
1 parent 86b20c2 commit 8622013
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 26 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/clang-format.yml

This file was deleted.

6 changes: 4 additions & 2 deletions src/pbrt/base/interaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,13 @@ class SurfaceInteraction : public Interaction {
public:
Vector3f dpdu, dpdv;
Normal3f dndu, dndv;

struct {
Normal3f n;
Vector3f dpdu, dpdv;
Normal3f dndu, dndv;
} shading;

int faceIndex = 0;

Vector3f dpdx;
Expand Down Expand Up @@ -140,8 +142,8 @@ struct ShapeIntersection {
SurfaceInteraction interaction;
FloatType t_hit;

PBRT_CPU_GPU ShapeIntersection(const SurfaceInteraction &si, FloatType t)
: interaction(si), t_hit(t) {}
PBRT_CPU_GPU
ShapeIntersection(const SurfaceInteraction &si, FloatType t) : interaction(si), t_hit(t) {}
};

struct QuadricIntersection {
Expand Down
1 change: 0 additions & 1 deletion src/pbrt/base/megakernel_integrator.cu
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ const Integrator *Integrator::create(const ParameterDictionary &parameters,
const std::string &integrator_name,
const IntegratorBase *integrator_base,
std::vector<void *> &gpu_dynamic_pointers) {

Integrator *integrator;
CHECK_CUDA_ERROR(cudaMallocManaged(&integrator, sizeof(Integrator)));
gpu_dynamic_pointers.push_back(integrator);
Expand Down
6 changes: 3 additions & 3 deletions src/pbrt/gui/gl_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class GLObject {

auto window_dimension = image_resolution;

auto scale_numerator = 20;
auto scale_denominator = 20;
auto scale_numerator = 40;
auto scale_denominator = 40;
while (true) {
// compute the maximal window size that can fit into the user screen
window_dimension = image_resolution * scale_numerator / scale_denominator;
Expand Down Expand Up @@ -158,7 +158,7 @@ class GLObject {
glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_2D,
texture); // all upcoming GL_TEXTURE_2D operations now have effect on this
// texture object
// texture object
// set the texture wrapping parameters
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S,
GL_REPEAT); // set texture wrapping to GL_REPEAT (default wrapping method)
Expand Down

0 comments on commit 8622013

Please sign in to comment.