mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
FrameBuffer Read/Write access WIP
This commit is contained in:
17
examples/21-deferred/fs_deferred_clear_uav.sc
Normal file
17
examples/21-deferred/fs_deferred_clear_uav.sc
Normal file
@@ -0,0 +1,17 @@
|
||||
$input v_texcoord0
|
||||
|
||||
/*
|
||||
* Copyright 2011-2018 Branimir Karadzic. All rights reserved.
|
||||
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
|
||||
*/
|
||||
|
||||
#include "common.sh"
|
||||
#include <bgfx_compute.sh>
|
||||
|
||||
IMAGE2D_RW(s_lights, rgba8, 1);
|
||||
|
||||
void main()
|
||||
{
|
||||
ivec2 coord = ivec2(gl_FragCoord.xy);
|
||||
imageStore(s_lights, coord, vec4(0.0, 0.0, 0.0, 0.0));
|
||||
}
|
||||
Reference in New Issue
Block a user