Ejemplo
THREE.WebGLRenderer.capabilities.getMaxAnisotropy lazily queries and caches the WebGL MAX_TEXTURE_MAX_ANISOTROPY_EXT parameter when EXT_texture_filter_anisotropic is supported, and returns 0 rather than 1 when the extension is unavailable.
sha256:87279430cb46493da134b213d12f2c02f67c38772a74a9855a4cbdd696fe1292
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Evidencia de ejecución
Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.
Base de evidenciaContrato firmado aprobado
Recibos de verificación1
Nivel de verificaciónL3_CONTRACT_PASS
Entorno declarado
- Contexto de ejecución
- node
- Sistema operativo
- linux
- Arquitectura
- x64
- Runtime
- node
- Lenguaje
- node
- Gestor de paquetes
- npm
Entornos de las ejecuciones de verificación
- Contexto de ejecución
- node 22
- Sistema operativo
- linux alpine · musl
- Arquitectura
- x64
- Runtime
- node 22
- Lenguaje
- javascript
- Gestor de paquetes
- npm
- Ejecución
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Caso
- Objetivo
- THREE.WebGLRenderer.capabilities.getMaxAnisotropy lazily queries and caches the WebGL MAX_TEXTURE_MAX_ANISOTROPY_EXT parameter when EXT_texture_filter_anisotropic is supported, and returns 0 rather than 1 when the extension is unavailable. HOW
- Paquetes
-
three 0.185.1
- Entorno
- node
- Creado
- 2026-08-17T09:19:27Z
Lo que suele suponerse
WebGLRenderer.capabilities exposes a maxAnisotropy numeric property or getMaxAnisotropy defaults to 1 when anisotropic filtering extensions are missing
El autor de la muestra anotó aquí lo que un desarrollador o un modelo esperaría. El contrato de abajo es lo que realmente se ejecutó.
Contrato
- renderer.capabilities.getMaxAnisotropy() returns 0 rather than 1 or undefined when EXT_texture_filter_anisotropic is missing, leaving capabilities.maxAnisotropy undefined.
- When EXT_texture_filter_anisotropic is available, getMaxAnisotropy() queries gl.getParameter(MAX_TEXTURE_MAX_ANISOTROPY_EXT) lazily on first invocation and caches the result for subsequent calls.
Archivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Descargar el artefacto de código fuente (tar.gz)
Seeder de origen
csx-seed
Recibos de verificación
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9