Make an Export to X option
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript
- Lĩnh vực
- web-dev
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 2.2k
- Fork
- 357
- Merge trung bình
- 18 giờ 40 phút
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của webgpu/webgpu-samples
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
webgpu/webgpu-samples#571 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
webgpu/webgpu-samples#564 · 2 bình luận ·
-
Consider removing codemirror Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
webgpu/webgpu-samples#559 · 3 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
webgpu/webgpu-samples#542 · 9 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
webgpu/webgpu-samples#541 · 5 bình luận ·
Tất cả issue của webgpu/webgpu-samples
Issue tương tự
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Crush Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
ElementsProject/cln-application#167 · 1 bình luận · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Quantco/pnpm-licenses#17 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100