diff --git a/docs/experiments.md b/docs/experiments.md index ca3c14055..c1f57e49c 100644 --- a/docs/experiments.md +++ b/docs/experiments.md @@ -17979,7 +17979,6 @@ Linux controls (including exhaustive verification against `fractions.Fraction` a Independent Windows 11 (`26200.9974`, DXC `1.9.2602.17`, `debug_layer=unavailable`) measurements on `bd8f6f42` ([comment 1](https://github.com/R0Y00/Xbox2Windows/pull/2857#issuecomment-7196200555)) and `3100f363` ([comment 2](https://github.com/R0Y00/Xbox2Windows/pull/2857#issuecomment-7200844836)) passed `pixel_aot_f16_cvt_norm_hardware` (`AMD Radeon RX 9070 XT` `1002:7550`, driver `32.0.32029.2010`) and `pixel_aot_f16_cvt_norm_warp` with `max_absolute_error=0`, all 20 mutation draws mismatching, and DXIL disassembly confirming the `-Od` pass retains the `mul`/`lshr`/`shl` integer path. Scope limits: under `#839`'s static finite-proof contract (`half16_arith_source` / `half16_dpp_source`), operands are statically known per-lane uniform values, so device draw readbacks do not distinguish lane-routing changes on `dpp16`/`dpp8` (the permutation-to-intrinsic mapping is pinned statically in `check_f16_cvt_norm_controls`), mutation draws compile optimized rather than `-Od`, and the exhaustive 63,488-value check runs in Python rather than on-device. - ## Native raw pixel buffer UAV binding The native graphics cache and draw stand-in support a single raw pixel UAV from a tracked descriptor table for a direct non-indexed draw without SRVs. The manifest records the table parameter and byte offset; the runtime requires an aligned raw R32_TYPELESS buffer view with valid bounds, UAV resource flags and compatible state, retains the resource, and orders consecutive UAV uses. Typed/structured views, mixed views and other draw paths are outside this slice (#3212, #3215; separate from #3094/#2981). diff --git a/docs/experiments/native-scalar-window-integration.md b/docs/experiments/native-scalar-window-integration.md new file mode 100644 index 000000000..0a0489396 --- /dev/null +++ b/docs/experiments/native-scalar-window-integration.md @@ -0,0 +1,71 @@ +# Native scalar input windows in the integration stack + +The public integration stack in [#3248](https://github.com/R0Y00/Xbox2Windows/pull/3248), +at `7f97cb5ba467d16019dfd3ecdc86cf09c6dbcf09`, retains the native compiler's +`Slot::scalar_window` metadata but does not consume it when resolving compute inputs. +The bounded unplaced-window fallback exists in the public runtime branch of +[#3094](https://github.com/R0Y00/Xbox2Windows/pull/3094) at `97cde4d5`. + +## Reproduction and change + +The existing source-built +[native compute dispatch check](../../tests/startup_compute_dispatch_native_check.py) +loads its scalar descriptor from table 1 byte 64 and reads a scalar at buffer byte 36. +The descriptor has three records of stride 16 in readable CPU memory outside the +fixture's placed buffers. A valid decoy at table byte 0 contains a different value. + +On the unmodified integration head, the first positive case is refused with +`an input is in title memory outside any placed buffer`. All 288 result words stay +at `0xc5c5c5c5` instead of becoming `0x400`; the 32 guard words remain untouched. +Native translation itself succeeds. + +Restore the bounded fallback after normal GPU-backed range resolution. It applies +only to native scalar views, non-token descriptors, and that specific unplaced-range +refusal. The descriptor must cover the compiler's required bytes, contain whole +dwords, be at most 64 KiB, and be completely readable. The existing frame upload +copy retains the data for the recording. Successful normal resolution, invalid +tokens, partial placements and short windows do not enter this fallback. Existing +compute input source counters identify the fallback as a CPU snapshot. + +This restores integration behavior; it does not enable the separate opt-in snapshot +of non-aliased placed buffers and does not change that policy. + +## Validation + +Windows 10 Pro build 19045, NVIDIA GeForce RTX 4070 Ti SUPER, driver +`32.0.15.7270`, Release `/O2`, MSVC `19.43.34810`, DXC `1.9.2609`, +Agility SDK 620, D3D12 debug layer enabled. The local WARP driver is +`10.0.19041.5794`. + +```powershell +. .\tools\dev.ps1 +cmake --build --preset runtime +# Use Windows' locale encoding for localized native error messages in this fixture. +$env:PYTHONUTF8 = '0' +ctest --preset release --no-tests=error -j 1 -V -R '^(native_fixed_mesh57_(varying|buffers)?_?hardware|startup_native_graphics_draw_hardware|startup_compute_dispatch_(native|input)_hardware|startup_slot67_indirect_dispatch_hardware)$' +ctest --preset release --no-tests=error -j 1 -V -R '^(startup_compute_dispatch_(native|input)|startup_slot67_indirect_dispatch)_warp$' +``` + +- Hardware: 7 selected, 7 passed, 0 failed, 0 skipped, 24.09 seconds. +- The scalar positives match all 288 result words for both `0x400` and `0x45678`, + with all 32 guards unchanged. The two-record (32-byte) control is refused and + leaves the complete output unchanged. The ordinary native, published fallback, + wrong table and shared read/write UAV cases also pass. +- Existing input rejection, opt-in snapshot, memory-view token, indirect dispatch + and fixed Mesh pixel checks pass without changing their assertions. +- WARP: 3 selected, 2 passed, 0 failed, 1 capability skip, 7.24 seconds. Native + compute skips because this WARP adapter has no 32-lane waves; its published + fallback and refusal controls run before the skip. + +With Python 3.14's UTF-8 default, the graphics check separately fails decoding a +localized missing-DXC error. `PYTHONUTF8=0` permits its existing negative control +to run; no graphics or test source change was needed for that local encoding issue. + +## Scope + +This fixture uses only synthetic inputs. Its descriptor shape is relevant to +[#3310](https://github.com/R0Y00/Xbox2Windows/issues/3310), but it does not establish +the cause of that issue's 48 zero argument records. A matched integration capture +must still identify the actual SRV producer, demonstrate nonzero matching +post-write and pre-consume records at the same resource and offset, and show a real +Mesh submission changing scene color before composition. diff --git a/src/direct_compute_cache.cpp b/src/direct_compute_cache.cpp index 79dcc6b3c..61dd908c0 100644 --- a/src/direct_compute_cache.cpp +++ b/src/direct_compute_cache.cpp @@ -893,7 +893,8 @@ static const char *view_kind_name(ComputeViewKind kind) { "heap_stride_srv", "raw_buffer_uav", "typed_buffer_uav", "half_buffer_uav", "root_buffer_srv", "comparison_texture_srv", "half2_texture_uav", "half4_texture_uav", "cube_sample_srv", "cube_comparison_srv", "indexed_atomic_uav", "d16_sample_srv", "byte_window_srv", "heap_buffer_srv", "heap_sampler", - "uint_texture_uav", "float_texture_uav", "float2_texture_uav", "float3_texture_uav"}; + "uint_texture_uav", "float_texture_uav", "float2_texture_uav", "float3_texture_uav", "packed_d16_x_uav", + "indexed_raw_srv"}; const auto index = static_cast(kind); return index < std::size(names) ? names[index] : "unknown"; } diff --git a/src/startup_stubs/d3d12_draw.inl b/src/startup_stubs/d3d12_draw.inl index 1933d5f78..c4e9c4b2e 100644 --- a/src/startup_stubs/d3d12_draw.inl +++ b/src/startup_stubs/d3d12_draw.inl @@ -157,6 +157,9 @@ struct Translation { enum UdKind { rect, base_vertex, start_instance, root_constant, stride, mrt_bits, d16_unorm16, desc_word3 }; struct Ud { int kind, a, b; }; int state = 0; // 1 ready, 2 unavailable + bool native_candidate = false; // shaders and manifest were prepared in-process; a published disk pair may also exist + u64 revision = 0; // bumped when a disk pair replaces the native shaders, invalidating created PSOs + std::string rtv_request; // the RTV variant text this translation was prepared for, else empty #ifdef X2W_NATIVE_SHADERS bool native_graphics_attempted = false; #endif @@ -447,7 +450,7 @@ bool native_shaders_only() return enabled; } -void load_translation(Translation& tr, const std::string& rtv_request = {}, std::string manifest = {}) +void load_translation(Translation& tr, const std::string& rtv_request = {}, std::string manifest = {}, bool count = true) { tr.state = 2; if (manifest.empty() && native_shaders_only()) { @@ -458,7 +461,7 @@ void load_translation(Translation& tr, const std::string& rtv_request = {}, std: const bool provided = !manifest.empty(); if (!cache_path(path, L"", tr.key, L".txt")) return; if (!provided && !read_text(path, manifest)) { - if (!tr.manifest_retry.pending()) { + if (count && !tr.manifest_retry.pending()) { InterlockedIncrement(&translation_missing); static LONG missing; if (rtv_request.empty() && first_calls(missing, 12)) @@ -580,8 +583,8 @@ void load_translation(Translation& tr, const std::string& rtv_request = {}, std: } tr.state = 1; load_pso_recipes(tr); - if (previously_missing) InterlockedDecrement(&translation_missing); - InterlockedIncrement(&translation_ready); + if (count && previously_missing) InterlockedDecrement(&translation_missing); + if (count) InterlockedIncrement(&translation_ready); log("x2w-draw pipeline %016llx translated: %zu entry values, %zu resources, %zu writable views, %zu static samplers, sampler_heap=%u", tr.key, tr.uds.size(), tr.srvs.size(), tr.uavs.size(), tr.samplers.statics.size(), tr.samplers.heap ? 1u : 0u); } @@ -614,6 +617,7 @@ static bool try_native_graphics(Translation& tr, bool variant = false) auto ps = stage(pair.pixel.dxil_ir, L"ps_6_6", ps_hit); Translation candidate; candidate.key = tr.key; + candidate.rtv_request = request.rtv_request; candidate.manifest_retry = tr.manifest_retry; candidate.native_graphics_attempted = true; if (!pair.input_layout.empty()) { @@ -631,6 +635,7 @@ static bool try_native_graphics(Translation& tr, bool variant = false) } candidate.vs = vs.Detach(); candidate.ps = ps.Detach(); + candidate.native_candidate = true; tr = std::move(candidate); log("x2w-draw native graphics %016llx ready=%u cache(frontend,vs,ps)=%u,%u,%u", tr.key, tr.state == 1, frontend_hit, vs_hit, ps_hit); @@ -1258,6 +1263,7 @@ Translation* translation_for_targets(Translation* base, const Pass& pass) if (!entry) { entry = new Translation; entry->key = key; + entry->rtv_request = request; load_translation(*entry, request); if (entry->state != 1) { const bool published = publish_shader_request(key, L".rtv", request.data(), request.size()); @@ -1459,8 +1465,9 @@ ID3D12PipelineState* pipeline_for(BoundPipeline& bound, Translation& tr, const P const DXGI_FORMAT dsv_format = pass_dsv_format(bound, pass); // A state decoded from registers needs a depth view to act on; with none bound the pass keeps the desktop default. const bool use_depth_stencil = bound.has_depth_stencil && (!bound.depth_from_registers || dsv_format != DXGI_FORMAT_UNKNOWN); - const u64 key = x2w_startup::pso_state_key(pass.target_count, pass.target_formats, dsv_format, use_depth_stencil, - bound.depth_stencil, bound.has_rasterizer, bound.rasterizer, indexed_rect); + u64 key = x2w_startup::pso_state_key(pass.target_count, pass.target_formats, dsv_format, use_depth_stencil, + bound.depth_stencil, bound.has_rasterizer, bound.rasterizer, indexed_rect); + if (tr.revision) key = fnv_bytes(&tr.revision, sizeof(tr.revision), key); const auto found = bound.pipelines.find(key); if (found != bound.pipelines.end()) return found->second; D3D12_BLEND_DESC blend{}; @@ -1492,11 +1499,42 @@ ID3D12PipelineState* pipeline_for(BoundPipeline& bound, Translation& tr, const P desc.SampleDesc.Count = 1; ID3D12PipelineState* pipeline = nullptr; X2W_ZONE("desktop pipeline creation"); - const HRESULT hr = device_of(the_device)->CreateGraphicsPipelineState(&desc, IID_PPV_ARGS(&pipeline)); - log("x2w-draw desktop pipeline for %016llx, %u targets (format %d) -> 0x%08lx (dsv %d, depth %d)", tr.key, - pass.target_count, pass.target_count ? pass.target_formats[0] : 0, static_cast(hr), - static_cast(dsv_format), desc.DepthStencilState.DepthEnable ? 1 : 0); - check_device("translated CreateGraphicsPipelineState", 0); + HRESULT hr = E_FAIL; + const bool injected = tr.native_candidate && x2w_local::env_on("X2W_TEST_NATIVE_GRAPHICS_PSO_FAILURE"); + if (!injected) { + hr = device_of(the_device)->CreateGraphicsPipelineState(&desc, IID_PPV_ARGS(&pipeline)); + log("x2w-draw desktop pipeline for %016llx, %u targets (format %d) -> 0x%08lx (dsv %d, depth %d)", tr.key, + pass.target_count, pass.target_count ? pass.target_formats[0] : 0, static_cast(hr), + static_cast(dsv_format), desc.DepthStencilState.DepthEnable ? 1 : 0); + check_device("translated CreateGraphicsPipelineState", 0); + } + if (FAILED(hr) && pipeline) { + pipeline->Release(); + pipeline = nullptr; + } + if (FAILED(hr) && tr.native_candidate) { + // A native candidate whose shaders this device cannot turn into a PSO keeps the published pair usable. + log("x2w-draw native graphics %016llx candidate pipeline failed 0x%08lx%s", tr.key, + static_cast(hr), injected ? " (injected)" : ""); + if (!native_shaders_only()) { + Translation fallback; + fallback.key = tr.key; + fallback.rtv_request = tr.rtv_request; + load_translation(fallback, tr.rtv_request, {}, false); + if (fallback.state == 1) { + fallback.revision = tr.revision + 1; + tr = std::move(fallback); + log("x2w-draw native graphics %016llx published disk pair recovered", tr.key); + ID3D12PipelineState* recovered = pipeline_for(bound, tr, pass, indexed_rect); + if (!recovered) + log("x2w-draw native graphics %016llx published disk pair pipeline failed", tr.key); + return recovered; + } + log("x2w-draw native graphics %016llx no valid published disk pair", tr.key); + } else { + log("x2w-draw native graphics %016llx no published disk pair in native-only mode", tr.key); + } + } bound.pipelines[key] = pipeline; if (pipeline) { wchar_t path[MAX_PATH]; @@ -2523,7 +2561,8 @@ IndirectBufferView indirect_table_buffer(Wrapper* self, const std::uint32_t* wor const Wrapper* owner = nullptr; bool own_memory = false; if (why) *why = nullptr; - if (words[0] == view_token_magic) { + const bool view_token_input = words[0] == view_token_magic; + if (view_token_input) { ViewRecord record{}; AcquireSRWLockShared(¬e_lock); if (words[1] < view_records().size()) record = view_records()[words[1]]; @@ -2607,7 +2646,9 @@ IndirectBufferView indirect_table_buffer(Wrapper* self, const std::uint32_t* wor owner = placed.owner; native = static_cast(owner->own().real); offset = address - reinterpret_cast(owner->own().title_memory); - if (!placed.alias) { + // A view token already names a desktop resource and its range. Reading it does not require the + // title-memory alias used for raw guest addresses; the later resource/device/range checks still apply. + if (!view_token_input && !placed.alias) { if (native && list_copied_gpu_range(self, native, offset, bytes)) { input_source = 1; // a GPU copy of this list filled the range: the GPU buffer is the truth } else if (allow_title_snapshot && title_input_snapshot_enabled() && bytes <= (u64{16} << 20)) { @@ -2890,20 +2931,47 @@ bool draw_translated(Wrapper* self, bool indexed, UINT count, UINT instances, UI return true; } if (indirect && tr) indirect->shader_key = tr->key; + if (!tr || tr->state != 1) { + if (indirect) indirect->refusal_code = indirect_refusal_code::translation_not_ready; + ReleaseSRWLockExclusive(&draw_lock); + return false; + } + // pipeline_for may replace the native candidate with the published disk translation. + // Create the PSO first, then derive every binding from the translation it leaves in tr. + bool fixed_stream = !tr->fixed_stream.empty(); + bool geometry_rect = indexed_rect || (rect && fixed_stream); + ID3D12PipelineState* pipeline = ensure_draw_heap(self->own().list_device) ? pipeline_for(*bound, *tr, pass, geometry_rect) : nullptr; + if (pipeline) { + const bool recovered_fixed_stream = !tr->fixed_stream.empty(); + const bool recovered_geometry_rect = indexed_rect || (rect && recovered_fixed_stream); + if (recovered_geometry_rect != geometry_rect) { + pipeline = pipeline_for(*bound, *tr, pass, recovered_geometry_rect); + geometry_rect = recovered_geometry_rect; + } + fixed_stream = recovered_fixed_stream; + } + if (indirect && indexed_rect && !pipeline) { + indirect->set_refusal("translated indexed rectangle geometry unavailable", + indirect_refusal_code::indexed_rect_unavailable); + } + if (!pipeline || (tr->samplers.heap && !prepare_draw_sampler_heap(self, pass, list, tr->samplers.reserved_fallback))) { + if (indirect && !(indexed_rect && !pipeline)) + indirect->refusal_code = !pipeline ? indirect_refusal_code::pipeline_unavailable + : indirect_refusal_code::sampler_heap_unavailable; + ReleaseSRWLockExclusive(&draw_lock); + return false; + } std::uint32_t d16_unorm16[32] = {}; FormattedBufferDescriptor formatted_buffers[32] = {}; - const bool translation_ok = tr && tr->state == 1; - const bool d16_ok = translation_ok && d16_srvs_ready(*tr, pass, d16_unorm16); + const bool d16_ok = d16_srvs_ready(*tr, pass, d16_unorm16); const bool formatted_ok = d16_ok && formatted_buffers_ready(*tr, pass, formatted_buffers); if (!formatted_ok) { - if (indirect && tr) - indirect->refusal_code = !translation_ok ? indirect_refusal_code::translation_not_ready - : !d16_ok ? indirect_refusal_code::d16_srv_not_ready - : indirect_refusal_code::formatted_buffer_not_ready; + if (indirect) + indirect->refusal_code = !d16_ok ? indirect_refusal_code::d16_srv_not_ready + : indirect_refusal_code::formatted_buffer_not_ready; ReleaseSRWLockExclusive(&draw_lock); return false; } - const bool fixed_stream = !tr->fixed_stream.empty(); D3D12_VERTEX_BUFFER_VIEW fixed_view{}; ID3D12Resource* fixed_resource = nullptr; if (fixed_stream && (indirect || !fixed_vertex_view(self, pass, *tr, indexed, start, count, fixed_view, fixed_resource))) { @@ -2966,19 +3034,6 @@ bool draw_translated(Wrapper* self, bool indexed, UINT count, UINT instances, UI return false; } } - const bool geometry_rect = indexed_rect || (rect && fixed_stream); - ID3D12PipelineState* pipeline = ensure_draw_heap(self->own().list_device) ? pipeline_for(*bound, *tr, pass, geometry_rect) : nullptr; - if (indirect && indexed_rect && !pipeline) { - indirect->set_refusal("translated indexed rectangle geometry unavailable", - indirect_refusal_code::indexed_rect_unavailable); - } - if (!pipeline || (tr->samplers.heap && !prepare_draw_sampler_heap(self, pass, list, tr->samplers.reserved_fallback))) { - if (indirect && !(indexed_rect && !pipeline)) - indirect->refusal_code = !pipeline ? indirect_refusal_code::pipeline_unavailable - : indirect_refusal_code::sampler_heap_unavailable; - ReleaseSRWLockExclusive(&draw_lock); - return false; - } const bool raw_uav = std::any_of(tr->uavs.begin(), tr->uavs.end(), [](const PixelUav& uav) { return uav.raw; }); // ponytail: prove direct draws with one writable buffer first. SRVs and indexed // draws can alias it through guest addresses, so do not guess their independence. diff --git a/src/startup_stubs/xapu.cpp b/src/startup_stubs/xapu.cpp index 8232d2bfc..50540182d 100644 --- a/src/startup_stubs/xapu.cpp +++ b/src/startup_stubs/xapu.cpp @@ -6,6 +6,7 @@ #include "startup_stubs/local_log.h" #include "startup_stubs/audio_telemetry.h" #include +#include #include #include #include @@ -229,9 +230,10 @@ void drop_decoder(Connection& conn, std::uint32_t slot, bool destroy) noexcept } // Decodes the packet of a type 3 command into a scratch buffer, so a refusal never touches the -// caller's output. On S_OK, *pcm holds entry.value bytes of float PCM for *dest. `decoded_packet` +// caller's output. On S_OK, *pcm holds entry.value bytes of float PCM for *dest. Called with +// connection_lock held, which also guards the scratch and planar buffers. `decoded_packet` // distinguishes a libopus decode from the no-packet completion, and `refusal` names the first check -// that refused the command. Called with connection_lock held, which also guards the scratch buffer. +// that refused the command. long decode_packet(Connection& conn, const unsigned char* c, QueueEntry& entry, const float** pcm, void** dest, bool& decoded_packet, DecodeRefusal& refusal) noexcept { @@ -257,6 +259,8 @@ long decode_packet(Connection& conn, const unsigned char* c, QueueEntry& entry, entry.output = out; } if (!packet && !packet_bytes) { // no packet: complete with 0 bytes, as without libopus + entry.frames = 0; + entry.value = 0; return hr_ok; } if (slot >= max_slots) { @@ -313,6 +317,7 @@ long decode_packet(Connection& conn, const unsigned char* c, QueueEntry& entry, } decoded_packet = true; *pcm = kept; + decoded_packet = true; *dest = reinterpret_cast(out); return hr_ok; } diff --git a/tests/native_graphics_sampler_table_check.py b/tests/native_graphics_sampler_table_check.py new file mode 100644 index 000000000..37f063c65 --- /dev/null +++ b/tests/native_graphics_sampler_table_check.py @@ -0,0 +1,68 @@ +"""Read back slots in the C++ raw graphics sampler-table lowering.""" +import struct +import subprocess +import sys +from pathlib import Path +from tempfile import TemporaryDirectory + +from native_direct_container_check import publish +from startup_sampler_heap_check import CONST_WORDS, FULLSCREEN_VS, MIXED_WORDS, PS_WORDS, VS_WORDS + + +def move(dst, src): + return struct.pack(" None: assert not (bad_cs_dir / f"{bad_cs_key:016x}.txt").exists() assert not (bad_cs_dir / f"{bad_cs_key:016x}.cs.cso").exists() - print("native_startup_request_cache controls: current and archived graphics (.psin) + compute (.c67) cache entries and 8 refusal controls passed") + # 7. Watch invalidation: sidecar content, not its timestamp, decides whether a published manifest is current. + watch_cache = work / "watch-sidecar" + watch_cache.mkdir() + watch_key = put_graphics_request(watch_cache, VS_WORDS, ps_words(4), g_root, TARGET_MASKS) + watch_manifest = watch_cache / f"{watch_key:016x}.txt" + watch_psin = watch_cache / f"req_{watch_key:016x}.psin" + watch_sidecar = watch_cache / f"req_{watch_key:016x}.ps57in" + watch_fail = watch_cache / f"{watch_key:016x}.fail" + watch_dep = watch_cache / f"{watch_key:016x}.psdep" + + def run_watch() -> list[str]: + result = subprocess.run( + [cli, "--watch", sdk, frontend, watch_cache, "--once"], + capture_output=True, text=True, + ) + assert result.returncode == 0, (result.stdout, result.stderr) + return result.stdout.splitlines() + + first_lines = run_watch() + assert any(line.endswith(": compiled graphics") for line in first_lines), first_lines + assert watch_manifest.is_file() and watch_dep.is_file() + published_ns = watch_manifest.stat().st_mtime_ns + + # Unchanged sidecar bytes: the published manifest is a cache hit and is not rewritten. + second_lines = run_watch() + assert not any("compiled graphics" in line for line in second_lines), second_lines + assert watch_manifest.stat().st_mtime_ns == published_ns + + # A contradictory slot-57 sidecar with an older mtime must withdraw the stale manifest. + conflicting = b"PSI1" + struct.pack(" is the number each revision bump raises), the translation files the runtime reads for one -# key, and the ones without which it has no translation. The fixed rectangle geometry stage, Python compute -# source, and mesh86 pixel stage are required only for their specific pipelines or requests. +# key, and the ones without which it has no translation. A later consumer must check which is current. compute +# also needs .cs.hlsl when its .txt has no native line, and mesh86 reads .ps.cso only for a request with a pixel +# shader; this loader reads neither, so both stay optional. graphics reads .gs.cso only for a rectangle geometry +# program, so it is optional too. PIPELINES = { "graphics": ("x2w-startup-shader-", (".txt", ".vs.cso", ".ps.cso", ".gs.cso"), (".txt", ".vs.cso", ".ps.cso")), "compute": ("x2w-startup-shader-cs", (".txt", ".cs.cso", ".cs.hlsl"), (".txt", ".cs.cso")),