Skip to content

Commit 96c0686

Browse files
luzpazalesambits
authored andcommitted
Fix various typos (bkaradzic#3377)
Found via `codespell -q 3 -S "./3rdparty,*.ttf,*.bin,./examples/common/imgui,./examples/common/font" -L attribut,ba,clude,conly,constan,espace,hashin,indext,inout,lod,nclude,retur,ser,sroll,struc,te,truct,unknwn,usin,utput,varyin`
1 parent d396104 commit 96c0686

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ different platforms, writing examples (see [Help Needed](https://github.com/bkar
55
for ideas), improving documentation, profiling and optimizing, helping
66
newcomers, telling others about bgfx, etc.
77

8-
If you have just quick oneliner question it's prefereable to ask it at chat
8+
If you have just quick oneliner question it's preferable to ask it at chat
99
https://discord.gg/9eMbv7J instead opening new issue.
1010

1111
## Submitting bugs

examples/31-rsm/reflectiveshadowmap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ class ExampleRSM : public entry::AppI
511511
bgfx::setTexture(0, s_normal, bgfx::getTexture(m_gbuffer, GBUFFER_RT_NORMAL) ); // Normal for lighting calculations
512512
bgfx::setTexture(1, s_depth, bgfx::getTexture(m_gbuffer, GBUFFER_RT_DEPTH) ); // Depth to reconstruct world position
513513

514-
// Thse are used in the vert shader
514+
// These are used in the vert shader
515515
bgfx::setTexture(2, s_shadowMap, bgfx::getTexture(m_shadowBuffer, SHADOW_RT_DEPTH) ); // Used to place sphere
516516
bgfx::setTexture(3, s_rsm, bgfx::getTexture(m_shadowBuffer, SHADOW_RT_RSM) ); // Used to scale/color sphere
517517

examples/40-svt/vt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ bool TileGenerator::generate(const bx::FilePath& _filePath)
12631263
}
12641264
}
12651265

1266-
bx::debugPrintf("Finising\n");
1266+
bx::debugPrintf("Finishing\n");
12671267
// Write header
12681268
m_tileDataFile->writeInfo();
12691269
// Close tile file

examples/42-bunnylod/progmesh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
struct triangle {
5252
int vertex[3]; // the 3 points (id) that make this tri
53-
float normal[3]; // unit vector othogonal to this face
53+
float normal[3]; // unit vector orthogonal to this face
5454
};
5555

5656
struct array {

examples/48-drawindirect/drawindirect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ class DrawIndirect : public entry::AppI
376376
// This is done here for demonstration purposes
377377

378378
// The model matrix for each instance is also set on compute
379-
// you could modify this to, eg, do frustrum culling on the GPU
379+
// you could modify this to, eg, do frustum culling on the GPU
380380
float ud[4] = { float(m_nDrawElements), float(m_sideSize), float(time), 0 };
381381
uint32_t numToDraw = (m_sideSize*m_sideSize);
382382

examples/49-hextile/fs_hextile.sc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ void hex2colTex(out vec4 color, out vec3 weights, vec2 uv,
157157
vec2 uv3 = mul(uv - cen3, rot3) + cen3 + hash(vertex3);
158158

159159
// Fetch input
160-
// We could simply use texture2D function, however, the sreen space derivatives could be broken
160+
// We could simply use texture2D function, however, the screen space derivatives could be broken
161161
// since we are using random offsets, we use texture2DGrad to make sure that we pass correct derivatives explicitly.
162162
vec4 c1 = texture2DGrad(s_trx_d, uv1,
163163
mul(dSTdx, rot1), mul(dSTdy, rot1));

examples/common/entry/entry_x11.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ namespace entry
336336
m_display = XOpenDisplay(NULL);
337337
if (NULL == m_display)
338338
{
339-
// Use `DISPLAY` enviroment variable to pick display. If `DISPLAY` is not set try ":0"
339+
// Use `DISPLAY` environment variable to pick display. If `DISPLAY` is not set try ":0"
340340
m_display = XOpenDisplay(":0");
341341
if (NULL == m_display)
342342
{

include/bgfx/bgfx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ namespace bgfx
350350
enum Enum
351351
{
352352
TriListFlipWinding, //!< Flip winding order of triangle list.
353-
TriStripFlipWinding, //!< Flip winding order of trinagle strip.
353+
TriStripFlipWinding, //!< Flip winding order of triangle strip.
354354
TriListToLineList, //!< Convert triangle list to line list.
355355
TriStripToTriList, //!< Convert triangle strip to triangle list.
356356
LineStripToLineList, //!< Convert line strip to line list.

src/renderer_mtl.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3792,7 +3792,7 @@ void writeString(bx::WriterI* _writer, const char* _str)
37923792
if (m_drawable != NULL)
37933793
{
37943794
m_drawableTexture = m_drawable.texture;
3795-
retain(m_drawable); // keep alive to be useable at 'flip'
3795+
retain(m_drawable); // keep alive to be usable at 'flip'
37963796
retain(m_drawableTexture);
37973797
}
37983798
else
@@ -5141,7 +5141,7 @@ static void setTimestamp(void* _data)
51415141
BGFX_FATAL(
51425142
false
51435143
, Fatal::DebugCheck
5144-
, "Failed to set image with access: %s, format:%s is not supoort"
5144+
, "Failed to set image with access: %s, format:%s is not supported"
51455145
, s_accessNames[bind.m_access]
51465146
, bimg::getName(bimg::TextureFormat::Enum(bind.m_format) )
51475147
);

0 commit comments

Comments
 (0)