Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Pull upstream #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Pull upstream #9
Changes from 1 commit
b93f6a4b4a30768988e47f19b5daea9548906381f2bddee27847d5ad624665f0f7af1bb4d773f8209d5334b6d0fe866b4b75220973bf63050fd79eb4d7c704b98c00f6d67e4a1a75a3011e2895a4f8cf995362911198c306f17379556fc5b8df7449231d648422604b474f9d2377c4cafb4d7d1f5214f18b406b59b04d6914e1f832a6bacd24219647054e52fef2f94053e7acf9c2d5dadffd31d72e2b1d14d17466287b2dc59ed0d8ef89c194b57a20f291e085550972149fa48d6e3c8a8b29f296d4ae77dcbb677b2ff650f53c620846439b5f5c957177f7f94396d8a77b0c978a6d3d43d9095aec1ecb78ac50b4baabbd1d0a31dd725c28f559583e01e8b23118b9b390fb1e07be1c93c7c2c8a9f88294abfe9a9d33d37e0d7712da0a54b3312164fcf67fd751c82a11702e4efa3dc68dedee162bf4e020fbdf5ceaf84c78ed99d64d34cFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
The first parameter of the HLSL_INTRINSIC record is actually a dummy entry for the function name. When builtin member function templates are instantiated, the 'this' ptr is added as the first ParamVarDecl, which has the same index as the first argument in the HLSL_INTRINSIC record. This shifts the parameter names by one for static member functions, as those do not have a 'this' pointer, as in: ``` | | | `-CXXMethodDecl {{[^ ]+}} <<invalid sloc>> <invalid sloc> used MakeMiss 'dx::HitObject (unsigned int, unsigned int, RayDesc)' static | | | |-TemplateArgument type 'dx::HitObject' | | | |-TemplateArgument type 'unsigned int' | | | |-TemplateArgument type 'unsigned int' | | | |-TemplateArgument type 'RayDesc' | | | |-ParmVarDecl {{[^ ]+}} <<invalid sloc>> <invalid sloc> MakeMiss 'unsigned int' | | | |-ParmVarDecl {{[^ ]+}} <<invalid sloc>> <invalid sloc> RayFlags 'unsigned int' | | | |-ParmVarDecl {{[^ ]+}} <<invalid sloc>> <invalid sloc> MissShaderIndex 'RayDesc' ``` The fix is the take the first actual parameter name of the HLSL_INTRINSIC if a static member function template is declared. Closes microsoft#7374Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing