fossilize-synth - Can't create shader with

未关闭
#306 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
冷清
技术栈
cpp
领域
cli, tooling

调研方向

首先使用 fossilize-synth --frag dump_frag.spv --output repro.foz 重现该报告,并检查所提供 shader 的 set 2、binding 0 声明。将报告的描述符类型重叠情况与相关的 Vulkan descriptor-buffer 规则进行比较。未指定源文件或测试;完成的标准是确定 SPIR-V 是否有效,以及 Fossilize 应当接受它还是明确报告一项限制。

由索引模型根据 Issue 内容生成。

描述

I hit this as trying to instrument this pipeline (from a a vkd3d title using Descriptor Buffers on Intel Mesa) with GPU-AV running on caused the driver to crash and wanted to create a repro, but hitting

$ fossilize-synth --frag dump_frag.spv --output repro.foz

Fossilize ERROR: Overlap in descriptor type for binding (2, 0) (was 6, now 7).

I pulled out the shader and seems valid https://godbolt.org/z/cadKMvben

I see this is around the whole HLSL having CBV vs SSBO stuff

layout(set = 2, binding = 0, std430) restrict readonly buffer SSBO {
    uint _m0[];
} _23[];

layout(set = 2, binding = 0, std430) restrict readonly buffer _26_29 {
    uvec4 _m0[];
} _29[];

layout(set = 2, binding = 0, std140) uniform BindlessCBV {
    vec4 _m0[4096];
} _36[];

not sure who is at fault here, but if this is valid SPIR-V, I guess not sure if this is a limitation of fossilize-synth... but at the same time, not sure what the VK_EXT_descriptor_buffer API side looks like

主要语言
C++
星标
800
派生
82
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ValveSoftware/Fossilize 的其他 Issue

查看 ValveSoftware/Fossilize 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。