Skip to content

docs: Create WGSL resolution example #1330

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

Merged
merged 3 commits into from
Jun 11, 2025
Merged

Conversation

mhawryluk
Copy link
Contributor

closes #1304

Copy link

github-actions bot commented Jun 3, 2025

pkg.pr.new

packages

pnpm i https://pkg.pr.new/software-mansion/TypeGPU/typegpu@1330
pnpm i https://pkg.pr.new/software-mansion/TypeGPU/typegpu@19dcf16aa942c32f5b75705e535cc9814595fea8

benchmark
view benchmark

commit
view commit

@mhawryluk mhawryluk marked this pull request as ready for review June 5, 2025 14:07
@reczkok
Copy link
Contributor

reczkok commented Jun 5, 2025

It totally breaks for me
image

I had better results with this although not ideal still (I also changed the query selector to .inner)

<div class="wgsl">
  <span class="inner"></span>
</div>

<style>
  .wgsl {
    padding: 2rem;
    max-height: 91vh;
    max-width: 100%;
    border-radius: 0.75rem;
    overflow: auto;

    background-color: var(--color-tameplum-100, #e2e2f0);
  }
  .inner {
    overflow: hidden;
    color: var(--color-tameplum-800, #515061);
    font-family: monospace;
    white-space: pre-wrap;
  }
</style>

@mhawryluk mhawryluk requested a review from iwoplaza June 10, 2025 14:28
@mhawryluk
Copy link
Contributor Author

i believe it works now

Copy link
Contributor

@reczkok reczkok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works great now 👍

@mhawryluk mhawryluk merged commit 705886a into release Jun 11, 2025
6 checks passed
@mhawryluk mhawryluk deleted the docs/wgsl-resolve-example branch June 11, 2025 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants