Skip to content

Instantly share code, notes, and snippets.

@nickdarnell
Last active December 20, 2016 22:33
Show Gist options
  • Save nickdarnell/5a268b18cfccd243d3b3 to your computer and use it in GitHub Desktop.
Save nickdarnell/5a268b18cfccd243d3b3 to your computer and use it in GitHub Desktop.
float4 vTexels;
vTexels.x = LastMip.Load( nCoords );
vTexels.y = LastMip.Load( nCoords, uint2(1,0) );
vTexels.z = LastMip.Load( nCoords, uint2(0,1) );
vTexels.w = LastMip.Load( nCoords, uint2(1,1) );
float fMaxDepth = max( max( vTexels.x, vTexels.y ), max( vTexels.z, vTexels.w ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment