Make an Export to X option
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- typescript
- 領域
- web-dev
調査の方向性
Start by inspecting how the TypeScript samples, imports, and asset paths are assembled and served; the issue specifically shows imports and relative cubemap image URLs as examples. Define the supported multi-file export targets and determine how each export rewrites module and asset URLs. Done means a sample can be exported to at least one supported service with its files and references working.
索引モデルが issue の本文から書いたものです。
説明
It's nice to be able to edit the sample easily so consider making an [Export to X] where X is any service that supports multiple files.
- Examples: playcode, stackblitz, codesandbox.
- Non-Examples: jsfiddle, jsbin, these do not support multiple files.
The biggest issue is that the files need to URLs changed when uploaded.
Example:
import { mat4 } from 'wgpu-matrix';
import sampleCubemapWGSL from './sampleCubemap.wgsl';
import { quitIfWebGPUNotAvailableOrMissingFeatures } from '../util';
...
let cubemapTexture: GPUTexture;
{
// The order of the array layers is [+X, -X, +Y, -Y, +Z, -Z]
const imgSrcs = [
'../../assets/img/cubemap/posx.jpg',
'../../assets/img/cubemap/negx.jpg',
'../../assets/img/cubemap/posy.jpg',
'../../assets/img/cubemap/negy.jpg',
'../../assets/img/cubemap/posz.jpg',
'../../assets/img/cubemap/negz.jpg',
];
const promises = imgSrcs.map(async (src) => {
Need to change to
import { mat4 } from 'https://unpkg.com/wgpu-matrix@latest/dist/3.x/wgpu-matrix.module.js'; // <- CHANGED
import sampleCubemapWGSL from './sampleCubemap.wgsl';
import { quitIfWebGPUNotAvailableOrMissingFeatures } from '../util'; // <- CHANGE?
...
let cubemapTexture: GPUTexture;
{
// The order of the array layers is [+X, -X, +Y, -Y, +Z, -Z]
const imgSrcs = [
'https://webgpu.github.io/webgpu-samples/assets/img/cubemap/posx.jpg', // <- CHANGED
'https://webgpu.github.io/webgpu-samples/assets/img/cubemap/negx.jpg', // <- CHANGED
'https://webgpu.github.io/webgpu-samples/assets/img/cubemap/posy.jpg', // <- CHANGED
'https://webgpu.github.io/webgpu-samples/assets/img/cubemap/negy.jpg', // <- CHANGED
'https://webgpu.github.io/webgpu-samples/assets/img/cubemap/posz.jpg', // <- CHANGED
'https://webgpu.github.io/webgpu-samples/assets/img/cubemap/negz.jpg', // <- CHANGED
];
const promises = imgSrcs.map(async (src) => {
Of course you could just import the entire repo
- 主要言語
- TypeScript
- スター
- 2.2k
- フォーク
- 357
- 平均マージ
- 18時間 40分
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
webgpu/webgpu-samples のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
webgpu/webgpu-samples#571 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
webgpu/webgpu-samples#564 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
webgpu/webgpu-samples#559 · コメント 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
webgpu/webgpu-samples#542 · コメント 9 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
webgpu/webgpu-samples#541 · コメント 5 件 ·
webgpu/webgpu-samples の issue をすべて見る
似ている issue
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
Mend: dependency security vulnerability untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100