9/3/2023 0 Comments Use pixel shaders warband![]() ![]() There is only a single root signature which has two tables, one for the SRV and one for the UAV. StructuredBuffer colorBuffer : register(t0) // SRV lor = float4(0.f, 1.f, 0.f, 1.f) Īnd in the pixel shader we have struct Color Set the structured buffer to a green color Void main(uint3 DispatchThreadID : SV_DispatchThreadID) RWStructuredBuffer OutputBuffer : register(u0) The compute shader looks like: struct Color This UAV data should then be passed to an SRV in a pixel shader which should then output this color. I'm working with a basic compute shader which only task is to modify the input color of an UAV.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |