Skip to content

Add writability to vk::BufferPointer pointees#52

Merged
llvm-beanz merged 3 commits into
microsoft:mainfrom
greg-lunarg:bp2
Sep 1, 2023
Merged

Add writability to vk::BufferPointer pointees#52
llvm-beanz merged 3 commits into
microsoft:mainfrom
greg-lunarg:bp2

Conversation

@greg-lunarg
Copy link
Copy Markdown
Contributor

Fixes #41

@s-perron
Copy link
Copy Markdown
Collaborator

Could you add an example that shows the buffer being written to?

@greg-lunarg
Copy link
Copy Markdown
Contributor Author

Could you add an example that shows the buffer being written to?

@s-perron Done

Copy link
Copy Markdown
Collaborator

@s-perron s-perron left a comment

Choose a reason for hiding this comment

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

LGTM

float4 MainPs(void) : SV_Target0
{
float4 vTest = float4(1.0,0.0,0.0,0.0);
g_PushConstants.m_nBufferDeviceAddress.Get().g_vTestFloat4 = vTest;
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.

Should we also include the expected SPIR-V operations for this code?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

OK.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@llvm-beanz llvm-beanz merged commit 96d9d4c into microsoft:main Sep 1, 2023
llvm-beanz pushed a commit to llvm-beanz/hlsl-specs that referenced this pull request Feb 9, 2025
* Add writability to vk::BufferPointer pointees

Fixes microsoft#41

* Add example of write through vk::BufferPointer

* Add SPIR-V for write through buffer pointer.
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.

[0010] Address writability of vk::BufferPointer<T,A> pointees

3 participants