From 8326248542c2196b4a4ba80f068adb8a0edd6006 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 28 Sep 2023 02:46:03 +0800 Subject: WIP Mesh shaders for SPIR-V (#3226) * SPIR-V impl for SetMeshOutputCounts and DispatchMesh * Unsightly fix for legalization ordering differences between GLSL and SPIR-V * spelling * Start a new block after terminating one in the OpEmitMeshTasksExt SPIR-V asm block * Emit mesh shader decorations in SPIR-V * Mesh and task shader stages for spir-v * Output explicit gl builtins for spir-v * Be more hygenic when SOAizing mesh outputs * Do not create builtin paramter block for spirv mesh outputs * Pass mesh payloads around by ref * comment * less expected failure * remove unused * Add spirv op * Correct type query for default flat modifier --------- Co-authored-by: Yong He --- source/slang/slang-emit.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source/slang/slang-emit.cpp') diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index 15ce25c3c..6a49e9842 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -896,10 +896,6 @@ Result linkAndOptimizeIR( // // If any have survived this far, change them back to regular (decorated) // arrays that the emitters can deal with. - // - // TODO: This is too early for the SPIR-V backend, which requires these - // types for when it calls legalizeEntryPointsForGLSL (later than GLSL does - // above) legalizeMeshOutputTypes(irModule); if (options.shouldLegalizeExistentialAndResourceTypes) -- cgit v1.2.3