Jump to content

  • Log In with Google      Sign In   
  • Create Account

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: 2302

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! Cuboid Zone
The Rule: Be polite, be professional, but have a plan to steal all their shaders!

Sponsor:

#22 Styves   Members   -  Reputation: 1095

Like
0Likes
Like

Posted 21 September 2013 - 10:34 PM

Why do you need render targets while writing the UAVs?



#23 Migi0027 (肉)   Crossbones+   -  Reputation: 2302

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! Cuboid Zone
The Rule: Be polite, be professional, but have a plan to steal all their shaders!

#24 Migi0027 (肉)   Crossbones+   -  Reputation: 2302

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! Cuboid Zone
The Rule: Be polite, be professional, but have a plan to steal all their shaders!

#25 Styves   Members   -  Reputation: 1095

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: 2302

Like
0Likes
Like

Posted 22 September 2013 - 09:34 AM

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

 

Thanks! smile.png


Hi! Cuboid Zone
The Rule: Be polite, be professional, but have a plan to steal all their shaders!




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