public void Clear(GPUTexture texture, Color color) { #if UNIT_TEST_COMPILANT throw new NotImplementedException("Unit tests, don't support methods calls. Only properties can be get or set."); #else if (texture == null) { throw new ArgumentNullException(nameof(texture)); } Internal_Clear(unmanagedPtr, texture.View(), ref color); #endif }
/// <summary> /// Draws postFx material to the render target. /// </summary> /// <param name="material">The material to render. It must be a post fx material.</param> /// <param name="output">The output texture. Must be valid and created.</param> /// <param name="input">The input texture. It's optional.</param> public void DrawPostFxMaterial(MaterialBase material, GPUTexture output, GPUTexture input = null) { DrawPostFxMaterial(material, output.View(), input); }