Skip to content
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: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
test:
name: Lint, Unit, Unit addons, Circular dependencies & Examples testing
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Git checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Expand Down Expand Up @@ -41,6 +43,8 @@ jobs:
name: E2E testing
runs-on: ${{ matrix.os }}
timeout-minutes: 30
permissions:
contents: read
strategy:
fail-fast: false
matrix:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/codeql-code-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
- cron: '29 23 * * 0'
workflow_dispatch:

permissions:
contents: read

jobs:
analyze:
name: Analyze
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/protected-folders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
- 'build/**'
- 'docs/**'

permissions:
contents: read
permissions: {}

jobs:
check:
runs-on: ubuntu-latest
permissions: {}
steps:
- name: Check for protected folder changes
if: ${{ github.event.pull_request.author_association != 'OWNER' && github.event.pull_request.author_association != 'COLLABORATOR' }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/read-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
read-size:
name: Tree-shaking
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Git checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/report-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,20 @@ on:
types:
- completed

# This workflow needs to be run with "pull-requests: write" permissions to
# be able to comment on the pull request. We can't checkout the PR code
# in this workflow.
# Reference:
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
permissions:
pull-requests: write
contents: read

jobs:
report-size:
name: Comment on PR
runs-on: ubuntu-latest
# This job needs "pull-requests: write" permissions to be able to comment
# on the pull request. We can't checkout the PR code in this workflow.
# Reference:
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
permissions:
contents: read
pull-requests: write
if: github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
steps:
Expand Down
9 changes: 5 additions & 4 deletions src/extras/PMREMGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ class PMREMGenerator {

/**
* Generates a PMREM from an equirectangular texture, which can be either LDR
* or HDR. The ideal input image size is 1k (1024 x 512),
* as this matches best with the 256 x 256 cubemap output.
* or HDR. The ideal input image size is 1k (1024 x 512), as this matches best
* with the 256 x 256 cubemap output. The minimum supported resolution is 64 x 32.
*
* @param {Texture} equirectangular - The equirectangular texture to be converted.
* @param {?WebGLRenderTarget} [renderTarget=null] - The render target to use.
Expand All @@ -157,8 +157,9 @@ class PMREMGenerator {

/**
* Generates a PMREM from an cubemap texture, which can be either LDR
* or HDR. The ideal input cube size is 256 x 256,
* as this matches best with the 256 x 256 cubemap output.
* or HDR. The ideal input cube size is 256 x 256, as this matches best
* with the 256 x 256 cubemap output. The minimum supported resolution is
* 16 x 16 per face.
*
* @param {Texture} cubemap - The cubemap texture to be converted.
* @param {?WebGLRenderTarget} [renderTarget=null] - The render target to use.
Expand Down
9 changes: 5 additions & 4 deletions src/renderers/common/extras/PMREMGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ class PMREMGenerator {

/**
* Generates a PMREM from an equirectangular texture, which can be either LDR
* or HDR. The ideal input image size is 1k (1024 x 512),
* as this matches best with the 256 x 256 cubemap output.
* or HDR. The ideal input image size is 1k (1024 x 512), as this matches best
* with the 256 x 256 cubemap output. The minimum supported resolution is 64 x 32.
*
* @param {Texture} equirectangular - The equirectangular texture to be converted.
* @param {?RenderTarget} [renderTarget=null] - The render target to use.
Expand Down Expand Up @@ -265,8 +265,9 @@ class PMREMGenerator {

/**
* Generates a PMREM from an cubemap texture, which can be either LDR
* or HDR. The ideal input cube size is 256 x 256,
* as this matches best with the 256 x 256 cubemap output.
* or HDR. The ideal input cube size is 256 x 256, as this matches best
* with the 256 x 256 cubemap output. The minimum supported resolution is
* 16 x 16 per face.
*
* @param {Texture} cubemap - The cubemap texture to be converted.
* @param {?RenderTarget} [renderTarget=null] - The render target to use.
Expand Down
2 changes: 2 additions & 0 deletions src/renderers/webgpu/utils/WebGPUBindingUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ class WebGPUBindingUtils {
const array = binding.buffer; // cpu
const buffer = backend.get( binding ).buffer; // gpu

if ( buffer === undefined ) return; // see #33461

const updateRanges = binding.updateRanges;

if ( updateRanges.length === 0 ) {
Expand Down
Loading