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 various typos #3377

Merged
merged 1 commit into from
Nov 16, 2024
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 CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ different platforms, writing examples (see [Help Needed](https://github.com/bkar
for ideas), improving documentation, profiling and optimizing, helping
newcomers, telling others about bgfx, etc.

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

## Submitting bugs
Expand Down
2 changes: 1 addition & 1 deletion examples/31-rsm/reflectiveshadowmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ class ExampleRSM : public entry::AppI
bgfx::setTexture(0, s_normal, bgfx::getTexture(m_gbuffer, GBUFFER_RT_NORMAL) ); // Normal for lighting calculations
bgfx::setTexture(1, s_depth, bgfx::getTexture(m_gbuffer, GBUFFER_RT_DEPTH) ); // Depth to reconstruct world position

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

Expand Down
2 changes: 1 addition & 1 deletion examples/40-svt/vt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,7 @@ bool TileGenerator::generate(const bx::FilePath& _filePath)
}
}

bx::debugPrintf("Finising\n");
bx::debugPrintf("Finishing\n");
// Write header
m_tileDataFile->writeInfo();
// Close tile file
Expand Down
2 changes: 1 addition & 1 deletion examples/42-bunnylod/progmesh.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

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

struct array {
Expand Down
2 changes: 1 addition & 1 deletion examples/48-drawindirect/drawindirect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ class DrawIndirect : public entry::AppI
// This is done here for demonstration purposes

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

Expand Down
2 changes: 1 addition & 1 deletion examples/49-hextile/fs_hextile.sc
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void hex2colTex(out vec4 color, out vec3 weights, vec2 uv,
vec2 uv3 = mul(uv - cen3, rot3) + cen3 + hash(vertex3);

// Fetch input
// We could simply use texture2D function, however, the sreen space derivatives could be broken
// We could simply use texture2D function, however, the screen space derivatives could be broken
// since we are using random offsets, we use texture2DGrad to make sure that we pass correct derivatives explicitly.
vec4 c1 = texture2DGrad(s_trx_d, uv1,
mul(dSTdx, rot1), mul(dSTdy, rot1));
Expand Down
2 changes: 1 addition & 1 deletion examples/common/entry/entry_x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ namespace entry
m_display = XOpenDisplay(NULL);
if (NULL == m_display)
{
// Use `DISPLAY` enviroment variable to pick display. If `DISPLAY` is not set try ":0"
// Use `DISPLAY` environment variable to pick display. If `DISPLAY` is not set try ":0"
m_display = XOpenDisplay(":0");
if (NULL == m_display)
{
Expand Down
2 changes: 1 addition & 1 deletion include/bgfx/bgfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ namespace bgfx
enum Enum
{
TriListFlipWinding, //!< Flip winding order of triangle list.
TriStripFlipWinding, //!< Flip winding order of trinagle strip.
TriStripFlipWinding, //!< Flip winding order of triangle strip.
TriListToLineList, //!< Convert triangle list to line list.
TriStripToTriList, //!< Convert triangle strip to triangle list.
LineStripToLineList, //!< Convert line strip to line list.
Expand Down
4 changes: 2 additions & 2 deletions src/renderer_mtl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3792,7 +3792,7 @@ void writeString(bx::WriterI* _writer, const char* _str)
if (m_drawable != NULL)
{
m_drawableTexture = m_drawable.texture;
retain(m_drawable); // keep alive to be useable at 'flip'
retain(m_drawable); // keep alive to be usable at 'flip'
retain(m_drawableTexture);
}
else
Expand Down Expand Up @@ -5141,7 +5141,7 @@ static void setTimestamp(void* _data)
BGFX_FATAL(
false
, Fatal::DebugCheck
, "Failed to set image with access: %s, format:%s is not supoort"
, "Failed to set image with access: %s, format:%s is not supported"
, s_accessNames[bind.m_access]
, bimg::getName(bimg::TextureFormat::Enum(bind.m_format) )
);
Expand Down
Loading