diff --git a/cmake/sanitize-helpers.cmake b/cmake/sanitize-helpers.cmake index 88da66ea..2e5babe9 100644 --- a/cmake/sanitize-helpers.cmake +++ b/cmake/sanitize-helpers.cmake @@ -99,7 +99,7 @@ function (sanitizer_check_compiler_flags FLAG_CANDIDATES NAME PREFIX) get_property(ENABLED_LANGUAGES GLOBAL PROPERTY ENABLED_LANGUAGES) foreach (LANG ${ENABLED_LANGUAGES}) - # Sanitizer flags are not dependend on language, but the used compiler. + # Sanitizer flags are not dependent on language, but the used compiler. # So instead of searching flags foreach language, search flags foreach # compiler used. set(COMPILER ${CMAKE_${LANG}_COMPILER_ID}) diff --git a/src/ext/gtest/gtest.h b/src/ext/gtest/gtest.h index 9bea4c8a..446c540a 100644 --- a/src/ext/gtest/gtest.h +++ b/src/ext/gtest/gtest.h @@ -18672,7 +18672,7 @@ class GTEST_API_ UnitTest { internal::UnitTestImpl* impl() { return impl_; } const internal::UnitTestImpl* impl() const { return impl_; } - // These classes and funcions are friends as they need to access private + // These classes and functions are friends as they need to access private // members of UnitTest. friend class Test; friend class internal::AssertHelper; diff --git a/src/pbrt/bxdfs.cpp b/src/pbrt/bxdfs.cpp index f09cc0fd..d6b546c6 100644 --- a/src/pbrt/bxdfs.cpp +++ b/src/pbrt/bxdfs.cpp @@ -698,7 +698,7 @@ static std::ostream &operator<<(std::ostream &os, Tensor::Type value) { os << "float64_t"; break; default: - os << "unkown"; + os << "unknown"; break; } return os; diff --git a/src/pbrt/cmd/pbrt.cpp b/src/pbrt/cmd/pbrt.cpp index d45eeba8..d764766b 100644 --- a/src/pbrt/cmd/pbrt.cpp +++ b/src/pbrt/cmd/pbrt.cpp @@ -218,7 +218,7 @@ int main(int argc, char *argv[]) { } if (options.useGPU && options.wavefront) - Warning("Both --gpu and --wavefront were specified; --gpu takes precidence."); + Warning("Both --gpu and --wavefront were specified; --gpu takes precedence."); if (options.pixelMaterial && options.wavefront) { Warning("Disabling --wavefront since --pixelmaterial was specified."); diff --git a/src/pbrt/materials.cpp b/src/pbrt/materials.cpp index a14c5d29..5c489215 100644 --- a/src/pbrt/materials.cpp +++ b/src/pbrt/materials.cpp @@ -487,7 +487,7 @@ CoatedConductorMaterial *CoatedConductorMaterial::Create( // SubsurfaceMaterial Method Definitions std::string SubsurfaceMaterial::ToString() const { - return StringPrintf("[ SubsurfaceMaterial displacment: %s scale: %f " + return StringPrintf("[ SubsurfaceMaterial displacement: %s scale: %f " "sigma_a: %s sigma_s: %s " "reflectance: %s mfp: %s uRoughness: %s vRoughness: %s " "eta: %f remapRoughness: %s ]", @@ -568,7 +568,7 @@ SubsurfaceMaterial *SubsurfaceMaterial::Create( // DiffuseTransmissionMaterial Method Definitions std::string DiffuseTransmissionMaterial::ToString() const { - return StringPrintf("[ DiffuseTransmissionMaterial displacment: %s reflectance: %s " + return StringPrintf("[ DiffuseTransmissionMaterial displacement: %s reflectance: %s " "transmittance: %s sigma: %s ]", displacement, reflectance, transmittance, sigma); } diff --git a/src/pbrt/textures.cpp b/src/pbrt/textures.cpp index fb2749c0..6d3ec052 100644 --- a/src/pbrt/textures.cpp +++ b/src/pbrt/textures.cpp @@ -1225,7 +1225,7 @@ GPUSpectrumImageTexture *GPUSpectrumImageTexture::Create( textureCacheMutex.unlock(); isSingleChannel = true; } else { - Warning(loc, "%s: unable to decypher image format", filename); + Warning(loc, "%s: unable to decipher image format", filename); return nullptr; } } // profile scope diff --git a/src/pbrt/util/image.cpp b/src/pbrt/util/image.cpp index dc506e67..64c92d10 100644 --- a/src/pbrt/util/image.cpp +++ b/src/pbrt/util/image.cpp @@ -943,7 +943,7 @@ static Imf::FrameBuffer imageToFrameBuffer(const Image &image, size_t xStride = image.NChannels() * TexelBytes(image.Format()); size_t yStride = image.Resolution().x * xStride; // Would be nice to use PixelOffset(-dw.min.x, -dw.min.y) but - // it checks to make sure the coordiantes are >= 0 (which + // it checks to make sure the coordinates are >= 0 (which // usually makes sense...) char *originPtr = (((char *)image.RawPointer({0, 0})) - dataWindow.min.x * xStride - dataWindow.min.y * yStride); @@ -1217,7 +1217,7 @@ static ImageAndMetadata ReadPNG(const std::string &name, Allocator alloc, std::vector buf; int bpp = state.info_png.color.bitdepth == 16 ? 16 : 8; bool hasAlpha = (state.info_png.color.colortype == LCT_RGBA); - // Force RGB if it's palletted or whatever. + // Force RGB if it's paletted or whatever. error = lodepng::decode(buf, width, height, (const unsigned char *)contents.data(), contents.size(), hasAlpha ? LCT_RGBA : LCT_RGB, bpp); diff --git a/src/pbrt/util/sampling_test.cpp b/src/pbrt/util/sampling_test.cpp index 18415011..4d3f247a 100644 --- a/src/pbrt/util/sampling_test.cpp +++ b/src/pbrt/util/sampling_test.cpp @@ -223,7 +223,7 @@ TEST(PiecewiseConstant1D, Continuous) { EXPECT_FLOAT_EQ(dist.size() * 1. / 16., pdf); EXPECT_EQ(0, offset); - // Right at the bounary between the 4 and the 8 segments. + // Right at the boundary between the 4 and the 8 segments. EXPECT_FLOAT_EQ(.8, dist.Sample(0.5, &pdf, &offset)); // Middle of the 8 segment diff --git a/src/pbrt/wavefront/media.cpp b/src/pbrt/wavefront/media.cpp index 7e6225f2..33112432 100644 --- a/src/pbrt/wavefront/media.cpp +++ b/src/pbrt/wavefront/media.cpp @@ -119,7 +119,7 @@ void WavefrontPathIntegrator::SampleMediumInteraction(int wavefrontDepth) { // Absorption--done. PBRT_DBG("absorbed\n"); T_hat = SampledSpectrum(0.f); - // Tell the medium to stop traveral. + // Tell the medium to stop traversal. return false; } else if (mode == 1) { // Scattering.