Пример #1
0
 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)));
 }
Пример #2
0
 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;
 }
Пример #3
0
		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;
		}
Пример #4
0
	    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));
	    }