Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


DX11 - Shaders - Writable Textures


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
25 replies to this topic

#21 Migi0027 (肉コーダ)   Crossbones+   -  Reputation: 3019

Like
0Likes
Like

Posted 21 September 2013 - 03:30 PM

Actually I might just be able to boil the number of render targets to 3, but that's the minimum, the thing is that I'm using the approach of deferred rendering, which consumes some render targets.

 

Btw. How on earth do you combine 6 3d cube map faces into one whole 3d cube map, never heard of this being done with 3d textures, maybe it's not possible yet...


Hi!

Game-Dev Journal: www.gamedev.net/blog/1882-the-cuboid-zone/

Wordpress Journal: cuboidzone.wordpress.com/


Sponsor:

#22 Styves   Members   -  Reputation: 1103

Like
0Likes
Like

Posted 21 September 2013 - 10:34 PM

Why do you need render targets while writing the UAVs?



#23 Migi0027 (肉コーダ)   Crossbones+   -  Reputation: 3019

Like
0Likes
Like

Posted 22 September 2013 - 01:09 AM

Well, this is what I do:

 

...

Do the Voxelisation (done, kinda)

...

Render the scene with Vox Data, output to different RTS (Deferred Rendering).

 

So I'm not actually writing to the UAV's anymore, that has already been done, can I send the UAVs without being in this writing stage?


Hi!

Game-Dev Journal: www.gamedev.net/blog/1882-the-cuboid-zone/

Wordpress Journal: cuboidzone.wordpress.com/


#24 Migi0027 (肉コーダ)   Crossbones+   -  Reputation: 3019

Like
0Likes
Like

Posted 22 September 2013 - 01:25 AM

I guess I could have a separate pass, where only one color is being set in the pixel shader, the GI only color, then sample it on top to the scene.


Hi!

Game-Dev Journal: www.gamedev.net/blog/1882-the-cuboid-zone/

Wordpress Journal: cuboidzone.wordpress.com/


#25 Styves   Members   -  Reputation: 1103

Like
0Likes
Like

Posted 22 September 2013 - 06:41 AM

You can make a shader resource view for your UAV buffer and use that in the shader stage as a texture input (Texture3D, etc). There's no need to use the UAVs at this point anymore. :)



#26 Migi0027 (肉コーダ)   Crossbones+   -  Reputation: 3019

Like
0Likes
Like

Posted 22 September 2013 - 09:34 AM

Ohh, wow, why didn't I think of that...

 

Thanks! smile.png


Hi!

Game-Dev Journal: www.gamedev.net/blog/1882-the-cuboid-zone/

Wordpress Journal: cuboidzone.wordpress.com/





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS