Jump to content

  • Log In with Google      Sign In   
  • Create Account


lomateron

Member Since 03 Feb 2012
Offline Last Active Sep 17 2014 12:19 PM

Topics I've Started

sign(a)

17 September 2014 - 07:23 AM

I just discovered that sign() is slow,and that it returns an int
 
So is there shorter faster code to do something like this?
 
float3 a;
if (a.x>0.0f){ a.x = 1.0f; } else{a.x = -1.0f;}
if (a.y>0.0f){ a.y = 1.0f; } else{a.y = -1.0f;}
if (a.z>0.0f){ a.z = 1.0f; } else{a.z = -1.0f;}

 


how to represent this number

16 September 2014 - 08:57 AM

I got the numbers {0,1,2,3....infinity} in my table

I take half of this numbers and put them in a set(even numbers) and the other half in another set(odd numbers)

how many different pairs can I make using a number from each set?

 

How is the answer represented mathematically?


1D and 3D textures useless?

11 September 2014 - 09:24 PM

1D textures have a very limited size

 

3D textures don't support a DepthStencilView

and need the geometry shader to render to it.

 

why would this formats exist?

what can be done with 1D or 3D textures that I can't be done in 2D textures?

 


deferred shading and clearing the swap chain render target

07 September 2014 - 04:00 PM

do you clear the swap chain render target every frame? if no, then what do you do?


Shader Resource View and Load()

04 September 2014 - 10:18 PM

Does someone here know how exactly I have to define 

D3D10_TEXTURE2D_DESC tex2D;

tex2D.MipLevels = ?;

 

D3D10_SHADER_RESOURCE_VIEW_DESC srvD;

srvD.Texture2D.MipLevels = ?;
srvD.Texture2D.MostDetailedMip = ?;
 
If I just want to work with individual texels all the time ...Load()

PARTNERS