Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #2839

Merged
merged 1 commit into from
Jul 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/build.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Download AndroidNDK:

- https://developer.android.com/tools/sdk/ndk/index.html

Set following enironment variables:
Set following environment variables:

::

Expand Down
4 changes: 2 additions & 2 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``.
Expand Down Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/tools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
<https://github.com/bkaradzic/bgfx/blob/master/src/bgfx_shader.sh>`__.
Expand Down
2 changes: 1 addition & 1 deletion examples/common/nanovg/nanovg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion scripts/bindings-zig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/renderer_mtl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1760,7 +1760,7 @@ void setAttachment(MTLRenderPassAttachmentDescriptor* _attachmentDescriptor, con

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];
Expand Down
2 changes: 1 addition & 1 deletion src/shader_dxbc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@ namespace bgfx
// 0 1 2 3
// 76543210765432107654321076543210
// ........ iiiii...........
// ^---------------- Interploation
// ^---------------- Interpolation

_instruction.interpolation = DxbcInterpolation::Enum( (token & UINT32_C(0x0000f800) ) >> 11);
break;
Expand Down