-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
//@surface | ||
|
||
#include "pipelines/common.hlsli" | ||
|
||
cbuffer Data : register(b4) { | ||
TextureHandle u_input; | ||
RWTextureHandle u_output; | ||
}; | ||
|
||
[numthreads(16, 16, 1)] | ||
void main(uint3 thread_id : SV_DispatchThreadID) { | ||
float4 v = bindless_textures[u_input][thread_id.xy]; | ||
v = float4(ACESFilm(v.rgb), 1); | ||
bindless_rw_textures[u_output][thread_id.xy] = v; | ||
float4 mainVS(uint vertexID : SV_VertexID) : SV_POSITION{ | ||
float2 uv; | ||
return fullscreenQuad(vertexID, uv); | ||
} | ||
|
||
float4 mainPS(float4 frag_coord : SV_POSITION) : SV_TARGET { | ||
uint2 ifrag_coord = uint2(frag_coord.xy); | ||
|
||
float4 v = bindless_textures[u_input][ifrag_coord]; | ||
return float4(ACESFilm(v.rgb), 1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters