Exemple #1
0
 public static void GetConvolutionFilterEXT(ConvolutionTargetEXT target, PixelFormat format, PixelType type, IntPtr image)
 {
     Debug.Assert(Delegates.pglGetConvolutionFilterEXT != null, "pglGetConvolutionFilterEXT not implemented");
     Delegates.pglGetConvolutionFilterEXT((Int32)target, (Int32)format, (Int32)type, image);
     LogFunction("glGetConvolutionFilterEXT({0}, {1}, {2}, 0x{3})", target, format, type, image.ToString("X8"));
     DebugCheckErrors(null);
 }
		public static void GetConvolutionFilterEXT(ConvolutionTargetEXT target, PixelFormat format, PixelType type, IntPtr image)
		{
			Debug.Assert(Delegates.pglGetConvolutionFilterEXT != null, "pglGetConvolutionFilterEXT not implemented");
			Delegates.pglGetConvolutionFilterEXT((Int32)target, (Int32)format, (Int32)type, image);
			CallLog("glGetConvolutionFilterEXT({0}, {1}, {2}, 0x{3})", target, format, type, image.ToString("X8"));
			DebugCheckErrors();
		}
		public static void GetConvolutionFilterEXT(ConvolutionTargetEXT target, PixelFormat format, PixelType type, Object image)
		{
			GCHandle pin_image = GCHandle.Alloc(image, GCHandleType.Pinned);
			try {
				GetConvolutionFilterEXT(target, format, type, pin_image.AddrOfPinnedObject());
			} finally {
				pin_image.Free();
			}
		}
Exemple #4
0
        public static void GetConvolutionFilterEXT(ConvolutionTargetEXT target, PixelFormat format, PixelType type, Object image)
        {
            GCHandle pin_image = GCHandle.Alloc(image, GCHandleType.Pinned);

            try {
                GetConvolutionFilterEXT(target, format, type, pin_image.AddrOfPinnedObject());
            } finally {
                pin_image.Free();
            }
        }
Exemple #5
0
 public static void GetConvolutionParameterEXT(ConvolutionTargetEXT target, ConvolutionParameterEXT pname, [Out] float[] @params)
 {
     unsafe
     {
         fixed(float *p_params = @params)
         {
             Debug.Assert(Delegates.pglGetConvolutionParameterfvEXT != null, "pglGetConvolutionParameterfvEXT not implemented");
             Delegates.pglGetConvolutionParameterfvEXT((Int32)target, (Int32)pname, p_params);
             LogFunction("glGetConvolutionParameterfvEXT({0}, {1}, {2})", target, pname, LogValue(@params));
         }
     }
     DebugCheckErrors(null);
 }
 public static void ConvolutionParameterfEXT( ConvolutionTargetEXT target, ConvolutionParameterEXT pname, float @params )
 {
     if (_ConvolutionParameterfEXT == null) throw new Exception( "Extension method ConvolutionParameterfEXT not found" );
      _ConvolutionParameterfEXT( target, pname, @params );
 }
 public static unsafe void ConvolutionFilter2DEXT( ConvolutionTargetEXT target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, void* image )
 {
     if (_ConvolutionFilter2DEXT == null) throw new Exception( "Extension method ConvolutionFilter2DEXT not found" );
      _ConvolutionFilter2DEXT( target, internalformat, width, height, format, type, image );
 }
 public abstract void ConvolutionFilter2D <T0>([Flow(FlowDirection.In)] ConvolutionTargetEXT target, [Flow(FlowDirection.In)] InternalFormat internalformat, [Flow(FlowDirection.In)] uint width, [Flow(FlowDirection.In)] uint height, [Flow(FlowDirection.In)] PixelFormat format, [Flow(FlowDirection.In)] PixelType type, [Count(Computed = "format, type, width, height"), Flow(FlowDirection.In)] ref T0 image) where T0 : unmanaged;
 public static unsafe void ConvolutionParameterx(this OesFixedPoint thisApi, [Flow(FlowDirection.In)] ConvolutionTargetEXT target, [Flow(FlowDirection.In)] ConvolutionParameterEXT pname, [Count(Computed = "pname"), Flow(FlowDirection.In)] ReadOnlySpan <int> @params)
 {
     // SpanOverloader
     thisApi.ConvolutionParameterx(target, pname, in @params.GetPinnableReference());
 }
 public abstract void GetConvolutionParameter([Flow(FlowDirection.In)] ConvolutionTargetEXT target, [Flow(FlowDirection.In)] ConvolutionParameterEXT pname, [Count(Computed = "pname"), Flow(FlowDirection.Out)] out int @params);
 public abstract void GetConvolutionFilter <T0>([Flow(FlowDirection.In)] ConvolutionTargetEXT target, [Flow(FlowDirection.In)] PixelFormat format, [Flow(FlowDirection.In)] PixelType type, [Count(Computed = "target, format, type"), Flow(FlowDirection.Out)] out T0 image) where T0 : unmanaged;
 public abstract unsafe void GetConvolutionFilter([Flow(FlowDirection.In)] ConvolutionTargetEXT target, [Flow(FlowDirection.In)] PixelFormat format, [Flow(FlowDirection.In)] PixelType type, [Count(Computed = "target, format, type"), Flow(FlowDirection.Out)] void *image);
 public abstract void CopyConvolutionFilter2D([Flow(FlowDirection.In)] ConvolutionTargetEXT target, [Flow(FlowDirection.In)] InternalFormat internalformat, [Flow(FlowDirection.In)] int x, [Flow(FlowDirection.In)] int y, [Flow(FlowDirection.In)] uint width, [Flow(FlowDirection.In)] uint height);
 public abstract unsafe void ConvolutionParameter([Flow(FlowDirection.In)] ConvolutionTargetEXT target, [Flow(FlowDirection.In)] ConvolutionParameterEXT pname, [Count(Computed = "pname"), Flow(FlowDirection.In)] int * @params);
 public abstract void ConvolutionParameter([Flow(FlowDirection.In)] ConvolutionTargetEXT target, [Flow(FlowDirection.In)] ConvolutionParameterEXT pname, [Flow(FlowDirection.In)] int @params);
		public static void GetConvolutionParameterEXT(ConvolutionTargetEXT target, ConvolutionParameterEXT pname, [Out] Int32[] @params)
		{
			unsafe {
				fixed (Int32* p_params = @params)
				{
					Debug.Assert(Delegates.pglGetConvolutionParameterivEXT != null, "pglGetConvolutionParameterivEXT not implemented");
					Delegates.pglGetConvolutionParameterivEXT((Int32)target, (Int32)pname, p_params);
					LogFunction("glGetConvolutionParameterivEXT({0}, {1}, {2})", target, pname, LogValue(@params));
				}
			}
			DebugCheckErrors(null);
		}
 public static void CopyConvolutionFilter2DEXT( ConvolutionTargetEXT target, PixelInternalFormat internalformat, int x, int y, int width, int height )
 {
     if (_CopyConvolutionFilter2DEXT == null) throw new Exception( "Extension method CopyConvolutionFilter2DEXT not found" );
      _CopyConvolutionFilter2DEXT( target, internalformat, x, y, width, height );
 }
 public static unsafe void GetConvolutionFilterEXT( ConvolutionTargetEXT target, PixelFormat format, PixelType type, [Out]void* image )
 {
     if (_GetConvolutionFilterEXT == null) throw new Exception( "Extension method GetConvolutionFilterEXT not found" );
      _GetConvolutionFilterEXT( target, format, type, image );
 }
 public static void GetConvolutionParameterivEXT( ConvolutionTargetEXT target, ConvolutionParameterEXT pname, [Out]int[] @params )
 {
     if (_GetConvolutionParameterivEXT == null) throw new Exception( "Extension method GetConvolutionParameterivEXT not found" );
      _GetConvolutionParameterivEXT( target, pname, @params );
 }
		public static void GetConvolutionParameterEXT(ConvolutionTargetEXT target, ConvolutionParameterEXT pname, [Out] float[] @params)
		{
			unsafe {
				fixed (float* p_params = @params)
				{
					Debug.Assert(Delegates.pglGetConvolutionParameterfvEXT != null, "pglGetConvolutionParameterfvEXT not implemented");
					Delegates.pglGetConvolutionParameterfvEXT((Int32)target, (Int32)pname, p_params);
					CallLog("glGetConvolutionParameterfvEXT({0}, {1}, {2})", target, pname, @params);
				}
			}
			DebugCheckErrors();
		}
 public abstract unsafe void ConvolutionFilter2D([Flow(FlowDirection.In)] ConvolutionTargetEXT target, [Flow(FlowDirection.In)] InternalFormat internalformat, [Flow(FlowDirection.In)] uint width, [Flow(FlowDirection.In)] uint height, [Flow(FlowDirection.In)] PixelFormat format, [Flow(FlowDirection.In)] PixelType type, [Count(Computed = "format, type, width, height"), Flow(FlowDirection.In)] void *image);