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 spelling mistakes #4754

Merged
merged 1 commit into from
Oct 16, 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
4 changes: 2 additions & 2 deletions src/core/preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const INVALID = /[><=|&+-]/g;
*/
class Preprocessor {
/**
* Run c-like proprocessor on the source code, and resolves the code based on the defines and ifdefs
* Run c-like preprocessor on the source code, and resolves the code based on the defines and ifdefs
*
* @param {string} source - The source code to work on.
* @returns {string|null} Returns preprocessed source code, or null in case of error.
Expand All @@ -53,7 +53,7 @@ class Preprocessor {
.map(line => line.trimEnd())
.join('\n');

// proprocess defines / ifdefs ..
// preprocess defines / ifdefs ..
source = this._preprocess(source);

if (source !== null) {
Expand Down
2 changes: 1 addition & 1 deletion src/core/tracing.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Tracing {
/**
* Test if the trace channel is enabled.
*
* @param {string} channel - Name of the trace channnel.
* @param {string} channel - Name of the trace channel.
* @returns {boolean} - True if the trace channel is enabled.
*/
static get(channel) {
Expand Down
4 changes: 2 additions & 2 deletions src/platform/graphics/shader-processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class ShaderProcessor {
// add textures uniforms
const textureFormats = [];
uniformLinesSamplers.forEach((uniform) => {
// unmached texture uniforms go to mesh block
// unmatched texture uniforms go to mesh block
if (!processingOptions.hasTexture(uniform.name)) {

// TODO: we could optimize visibility to only stages that use any of the data
Expand Down Expand Up @@ -302,7 +302,7 @@ class ShaderProcessor {
const location = semanticToLocation[semantic];

Debug.assert(!usedLocations.hasOwnProperty(location),
`WARNING: Two vertex attribues are mapped to the same location in a shader: ${usedLocations[location]} and ${semantic}`);
`WARNING: Two vertex attributes are mapped to the same location in a shader: ${usedLocations[location]} and ${semantic}`);
usedLocations[location] = semantic;

// generates: 'layout(location = 0) in vec4 position;'
Expand Down
2 changes: 1 addition & 1 deletion src/platform/graphics/webgpu/webgpu-graphics-device.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { WebgpuRenderState } from './webgpu-render-state.js';

class WebgpuGraphicsDevice extends GraphicsDevice {
/**
* The render target represenging the main framebuffer.
* The render target representing the main framebuffer.
*
* @type {RenderTarget}
*/
Expand Down
2 changes: 1 addition & 1 deletion src/platform/graphics/webgpu/webgpu-texture.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class WebgpuTexture {

} else {

Debug.error('Unsuported texture soruce data', mipObject);
Debug.error('Unsupported texture source data', mipObject);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/scene/frame-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class FrameGraph {

if (thisTexture?.cubemap) {

// if previous pass used the same cubemap texture, it does not need mimaps generated
// if previous pass used the same cubemap texture, it does not need mipmaps generated
if (lastCubeTexture === thisTexture) {
lastCubeRenderPass.colorOps.mipmaps = false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/scene/renderer/forward-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ class ForwardRenderer {
/**
* Set up the viewport and the scissor for camera rendering.
*
* @param {Camera} camera - The camera containing the viewport infomation.
* @param {Camera} camera - The camera containing the viewport information.
* @param {RenderTarget} [renderTarget] - The render target. NULL for the default one.
*/
setupViewport(camera, renderTarget) {
Expand Down