Skip to content

[spirv] add vk::ext_result_id<T> type - #4192

Merged
Jaebaek Seo (jaebaek) merged 4 commits into
microsoft:masterfrom
jaebaek:ext_result_id
Jan 19, 2022
Merged

Jaebaek Seo (jaebaek) merged 4 commits into
microsoft:masterfrom
jaebaek:ext_result_id

Conversation

@jaebaek

Copy link
Copy Markdown
Collaborator

As a part of HLSL version of GL_EXT_spirv_intrinsics, this commit adds
vk::ext_result_id type. We must use it for a variable definition or
a function parameter. It means we do not consider it as a physical
storage. Instead, it will be a result id of the instruction.

Related to #3919

@jaebaek

Copy link
Copy Markdown
Collaborator Author

JiaoluAMD (@jiaolu) Could you please review this PR?

@AppVeyorBot

Copy link
Copy Markdown

@jiaolu

Copy link
Copy Markdown
Contributor

JiaoluAMD (@jiaolu) Could you please review this PR?

sure, will take a look

@jiaolu JiaoluAMD (jiaolu) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very cool implementation,
looks great to me

@jaebaek

Copy link
Copy Markdown
Collaborator Author

JiaoluAMD (@jiaolu) Thanks!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % nits

As a part of HLSL version of GL_EXT_spirv_intrinsics, this commit adds
vk::ext_result_id<T> type. We must use it for a variable definition or
a function parameter. It means we do not consider it as a physical
storage. Instead, it will be a result id of the instruction.

Related to microsoft#3919
@AppVeyorBot

Copy link
Copy Markdown

@jaebaek
Jaebaek Seo (jaebaek) merged commit 19139d8 into microsoft:master Jan 19, 2022
@jaebaek
Jaebaek Seo (jaebaek) deleted the ext_result_id branch January 19, 2022 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants