Skip to content

Ray queries in mesh shaders #8753

@inner-daemons

Description

@inner-daemons

Is your feature request related to a problem? Please describe.
Title

Describe the solution you'd like
Figure out where this is possible. My understanding is that this would be allowed on Vulkan and DX12, though of course that should be tested.

On metal however, the spec says this:

All OS: Metal 2.3.and later support ray-tracing types.
The header <metal_raytracing> defines these types in the namespace
metal::raytracing. In Metal 2.3 and later, these types are only supported in a compute
function (kernel functions) except where noted below. In Metal 2.4 and later, they are also
supported in vertex, fragment, and tile functions. In Metal 3.1 and later, ray tracing supports
curves and multilevel instancing.

This seems to imply that they wouldn't be supported in mesh shaders or task/object shaders, even though task shaders are very similar to compute shaders. This should be investigated, even if its kinda dumb.

Describe alternatives you've considered
Not doing this cus its dumb

Additional context
#7197
CC @Vecvec

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions