private Fragment CreateFragment(int x, int y, FragmentQuadLocation quadLocation, ref Box2D screenBounds) { return(new Fragment( _primitive.Vertices, _primitive.PrimitiveID, _primitive.RenderTargetArrayIndex, x, y, quadLocation, screenBounds.IsPointInside(x, y))); }
public Fragment(VertexShaderOutput[] vertices, int primitiveID, uint renderTargetArrayIndex, int x, int y, FragmentQuadLocation quadLocation, bool isInsideViewport) { Vertices = vertices; PrimitiveID = primitiveID; RenderTargetArrayIndex = renderTargetArrayIndex; X = x; Y = y; QuadLocation = quadLocation; IsInsideViewport = isInsideViewport; Samples = new Samples(); Data = null; }
public Fragment(VertexShaderOutput[] vertices, int primitiveID, uint renderTargetArrayIndex, int x, int y, FragmentQuadLocation quadLocation, bool isInsideViewport) { Vertices = vertices; PrimitiveID = primitiveID; RenderTargetArrayIndex = renderTargetArrayIndex; X = x; Y = y; QuadLocation = quadLocation; IsInsideViewport = isInsideViewport; Samples = new Samples(); Data = null; }
private Fragment CreateFragment(int x, int y, FragmentQuadLocation quadLocation, ref Box2D screenBounds) { return new Fragment( _primitive.Vertices, _primitive.PrimitiveID, _primitive.RenderTargetArrayIndex, x, y, quadLocation, screenBounds.IsPointInside(x, y)); }