tgjones / HlslTools

A Visual Studio extension that provides enhanced support for editing High Level Shading Language (HLSL) files
http://timjones.io/blog/archive/2016/04/25/hlsl-tools-for-visual-studio-v1.0-released
Other
565 stars 97 forks source link

Function 'TraceRay' is not declared #221

Open omd24 opened 2 years ago

omd24 commented 2 years ago

While other DXR intrinsics are working properly, it seems like TraceRay is not supported yet. Is there any way to at least disable the pertaining errors in VSCode?

Hearwindsaying commented 2 years ago

Seems lots of DXR flags are still not supported, such as RAY_FLAG_ACCEPT_FIRST_HIT_AND_END_SEARCH etc.

My trick is to use #if defined(__INTELLISENSE__) though.

mrvux commented 2 years ago

Would it be possible to provide a list of missing intrinsics and flags? Certainly easier to add them all at once.

Nielsbishere commented 1 year ago

Yes I'm having this issue too. Here's a list of all things missing: TraceRay RayFlags (RAY_FLAG: FORCE_OPAQUE, FORCE_NON_OPAQUE, ACCEPT_FIRST_AND_END_SEARCH, SKIP_CLOSEST_HIT_SHADER, CULL_BACK_FACING_TRIANGLES, CULL_FRONT_FACING_TRIANGLES, CULL_OPAQUE, CULL_NON_OPAQUE, SKIP_TRIANGLES, SKIP_PROCEDURAL_PRIMITIVES).

Nielsbishere commented 1 year ago

Requires https://github.com/tgjones/HlslTools/issues/156