HLSL: Attributes: Add [[vk::constant_id()]] and [[vk::push_constant]]
This commit is contained in:
parent
e08ed0ccf4
commit
046bae0bab
8 changed files with 127 additions and 80 deletions
|
|
@ -11,8 +11,12 @@ StructuredBuffer<S> buffer3;
|
|||
[[vk::input_attachment_index(4)]]
|
||||
Texture2D<float4> attach;
|
||||
|
||||
[[vk::constant_id(13)]] const int ci = 11;
|
||||
|
||||
[[vk::push_constant]] cbuffer pcBuf { int a; };
|
||||
|
||||
[[vk::location(7)]] float4
|
||||
main([[vk::location(8)]] float4 input: A) : B
|
||||
{
|
||||
return input + attach.Load(float2(0.5));
|
||||
return input + attach.Load(float2(0.5));// * a;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue