From e7936efa6a7c79ef60366d318a11a3b889ba40ae Mon Sep 17 00:00:00 2001 From: luzpaz Date: Tue, 12 Jul 2022 17:21:31 -0400 Subject: [PATCH] Fix typos (#2839) Found via `codespell -q 3 -S ./3rdparty,*.ttf -L attribut,ba,clude,conly,indext,inout,lod,nclude,retur,struc,unknwn,utput` --- docs/build.rst | 2 +- docs/examples.rst | 4 ++-- docs/overview.rst | 2 +- docs/tools.rst | 2 +- examples/common/nanovg/nanovg.h | 2 +- scripts/bindings-zig.lua | 2 +- src/renderer_mtl.mm | 2 +- src/shader_dxbc.cpp | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/build.rst b/docs/build.rst index 831d99cdd..85f326e91 100644 --- a/docs/build.rst +++ b/docs/build.rst @@ -52,7 +52,7 @@ Download AndroidNDK: - https://developer.android.com/tools/sdk/ndk/index.html -Set following enironment variables: +Set following environment variables: :: diff --git a/docs/examples.rst b/docs/examples.rst index 5ba039006..ca68af0c0 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -231,7 +231,7 @@ Shadow volumes. 60Hz ^^^^ -Draw stress is CPU stress test to show what is the maximimum number of +Draw stress is CPU stress test to show what is the maximum number of draw calls while maintaining 60Hz frame rate. bgfx currently has default limit of 64K draw calls per frame. You can increase this limit by changing ``BGFX_CONFIG_MAX_DRAW_CALLS``. @@ -374,7 +374,7 @@ To test browsers in 60Hz mode following changes were made: ^^^^^^^^^^^^^^^^^^^^^^^^ By default browsers are using vsync, and don't have option to turn it -off programatically. +off programmatically. +----------------+------------+------------+--------------------------+-------+----------+ | CPU | Renderer | GPU | Arch/Compiler/OS | Dim | Calls | diff --git a/docs/overview.rst b/docs/overview.rst index 590937041..364160cec 100644 --- a/docs/overview.rst +++ b/docs/overview.rst @@ -169,7 +169,7 @@ device or OpenGL context. For more info see: :doc:`bgfx`. -.. note:: You can use ``--with-sdl`` when runnning GENie to enable SDL2 integration with examples: +.. note:: You can use ``--with-sdl`` when running GENie to enable SDL2 integration with examples: ``genie --with-sdl vs2012`` .. note:: ``--with-glfw`` is also available, but it's just simple stub to be used to test GLFW diff --git a/docs/tools.rst b/docs/tools.rst index e9aec833a..3af09e60b 100644 --- a/docs/tools.rst +++ b/docs/tools.rst @@ -73,7 +73,7 @@ Some differences between bgfx's shaderc flavor of GLSL and vanilla GLSL: instead of using ``attribute/in`` and ``varying/in/out``. This file cannot include comments, and typically only one is necessary. - ``$input/$output`` tokens corresponding to inputs and outputs defined in - ``varying.def.sc`` must be used at the begining of shader. + ``varying.def.sc`` must be used at the beginning of shader. For more info, see the `shader helper macros `__. diff --git a/examples/common/nanovg/nanovg.h b/examples/common/nanovg/nanovg.h index a559e8e08..bf4574b7b 100644 --- a/examples/common/nanovg/nanovg.h +++ b/examples/common/nanovg/nanovg.h @@ -408,7 +408,7 @@ NVGpaint nvgBoxGradient(NVGcontext* ctx, float x, float y, float w, float h, NVGpaint nvgRadialGradient(NVGcontext* ctx, float cx, float cy, float inr, float outr, NVGcolor icol, NVGcolor ocol); -// Creates and returns an image patter. Parameters (ox,oy) specify the left-top location of the image pattern, +// Creates and returns an image pattern. Parameters (ox,oy) specify the left-top location of the image pattern, // (ex,ey) the size of one image, angle rotation around the top-left corner, image is handle to the image to render. // The gradient is transformed by the current transform when it is passed to nvgFillPaint() or nvgStrokePaint(). NVGpaint nvgImagePattern(NVGcontext* ctx, float ox, float oy, float ex, float ey, diff --git a/scripts/bindings-zig.lua b/scripts/bindings-zig.lua index 6c511d376..ad385ecd3 100644 --- a/scripts/bindings-zig.lua +++ b/scripts/bindings-zig.lua @@ -407,7 +407,7 @@ function converter.funcs(params) return end - -- skipp for now, don't know how to handle variadic functions + -- skip for now, don't know how to handle variadic functions if func.cname == "dbg_text_printf" or func.cname == "dbg_text_vprintf" then return end diff --git a/src/renderer_mtl.mm b/src/renderer_mtl.mm index 716514726..8f1cd10ab 100644 --- a/src/renderer_mtl.mm +++ b/src/renderer_mtl.mm @@ -1760,7 +1760,7 @@ BX_STATIC_ASSERT(BX_COUNTOF(s_accessNames) == Access::Count, "Invalid s_accessNa void setFrameBuffer(RenderPassDescriptor _renderPassDescriptor, FrameBufferHandle _fbh, bool _msaa = true) { - // reslove framebuffer + // resolve framebuffer if (isValid(m_fbh) && m_fbh.idx != _fbh.idx) { FrameBufferMtl& frameBuffer = m_frameBuffers[m_fbh.idx]; diff --git a/src/shader_dxbc.cpp b/src/shader_dxbc.cpp index 0e448f27a..6f27ff7d2 100644 --- a/src/shader_dxbc.cpp +++ b/src/shader_dxbc.cpp @@ -1235,7 +1235,7 @@ namespace bgfx // 0 1 2 3 // 76543210765432107654321076543210 // ........ iiiii........... - // ^---------------- Interploation + // ^---------------- Interpolation _instruction.interpolation = DxbcInterpolation::Enum( (token & UINT32_C(0x0000f800) ) >> 11); break;