mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 15:00:57 +01:00
* Features and draw commands added * Tried to implement the pipeline creation (completely untested) * Fixed clippy issues * Fixed something I think * A little bit of work on the mesh shader example (currently doesn't work on dx12) * Reached a new kind of error state * Fixed an alignment issue * DirectX 12 mesh shaders working :party: * Removed stupid change and updated changelog * Fixed typo * Added backends option to example framework * Removed silly no write fragment shader from tests to see if anything breaks * Tried to make mesh shader tests run elsewhere too * Removed printlns and checked that dx12 mesh shader tests run * Documented very strange issue * I'm so lost * Fixed stupid typos * Fixed all issues * Removed unnecessary example stuff, updated tests * Updated typos.toml * Updated limits * Apply suggestion from @cwfitzgerald Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com> * Apply suggestion from @cwfitzgerald Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com> * Removed supported backends, made example & tests always pass the filename to shader compilers * Removed excessive bools in test params * Added new tests to the list * I'm a sinner for this one (unused import) * Replaced random stuff with test params hashing * Updated typos.toml * Updated -Fo typo thing * Actually fixed typo issue this time * Update CHANGELOG.md Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com> * Update tests/tests/wgpu-gpu/mesh_shader/mod.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update wgpu-hal/src/dx12/mod.rs Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com> * Addressed comments * Lmao --------- Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
16 lines
351 B
Plaintext
16 lines
351 B
Plaintext
#version 450
|
|
#extension GL_EXT_mesh_shader : require
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
|
|
struct TaskPayload {
|
|
vec4 colorMask;
|
|
bool visible;
|
|
};
|
|
taskPayloadSharedEXT TaskPayload taskPayload;
|
|
|
|
void main() {
|
|
taskPayload.colorMask = vec4(1.0, 1.0, 0.0, 1.0);
|
|
taskPayload.visible = true;
|
|
EmitMeshTasksEXT(3, 1, 1);
|
|
} |