Skip to content

Instantly share code, notes, and snippets.

View tomspilman's full-sized avatar
💭
I will be slow to respond.

Tom Spilman tomspilman

💭
I will be slow to respond.
View GitHub Profile
static float k_lut_size = 1.0 / 16.0;
static float k_lut_pixel_size = k_lut_size / 16.0;
static float k_lut_half_pixel_size = k_lut_pixel_size / 2.0f;
float4 tex3D(sampler2D tex, float3 coord)
{
// Clamp the sample to within one 16x16 slice to avoid filtering bleed.
float y = coord.y;
y = max(y - k_lut_half_pixel_size, k_lut_half_pixel_size);
curl -X POST -H "Authorization: token 58d024e87229477876113deaba90b8e27b779675" -v https://api.github.com/repos/MonoGame/MonoGame/statuses/4e8d876371a92097319b2149d8a5a118bcedf151
* Trying 192.30.253.117...
* Connected to api.github.com (192.30.253.117) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: T:\curl_7_50_1_openssl_nghttp2_x64\ca-bundle.crt
CApath: none
[2016-08-06 13:55:49,400] WARN - .github.api.impl.GitHubApiImpl - Failed to complete query to GitHub with:
requestURL: https://api.github.com/repos/MonoGame/MonoGame/statuses/4e8d876371a92097319b2149d8a5a118bcedf151
requestMethod: POST
requestEntity: {"state":"success","target_url":"http://teamcity.monogame.net/viewLog.html?buildId\u003d21249\u0026buildTypeId\u003dMonoGame_PackagingWindows\u0026guest\u003d1","description":"Finished TeamCity Build MonoGame :: Package Windows : Running","context":"Package Windows SDK"}
response: HTTP/1.1 404 Not Found
responseEntity: {"message":"Not Found","documentation_url":"https://developer.github.com/v3"}
[2016-08-06 13:55:49,400] WARN - lty.github.ChangeStatusUpdater - Failed to update GitHub status for hash: 4e8d876371a92097319b2149d8a5a118bcedf151, buildId: 21249, status: Success. Failed to complete request to GitHub. Status: HTTP/1.1 404 Not Found
java.io.IOException: Failed to complete request to GitHub. Status: HTTP/1.1 404 Not Found
at jetbrains.tea
T:\curl_7_50_1_openssl_nghttp2_x64>curl -X POST -v https://api.github.com/repos/MonoGame/MonoGame/statuses/4e8d876371a92
097319b2149d8a5a118bcedf151
* Trying 192.30.253.116...
* Connected to api.github.com (192.30.253.116) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: T:\curl_7_50_1_openssl_nghttp2_x64\ca-bundle.crt
CApath: none
<?xml version="1.0" encoding="utf-8"?>
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
<TemplateData>
<Name Package="{2581426E-BF4F-4A49-A42A-20EF9D51EF49}" ID="1100" />
<Description Package="{2581426E-BF4F-4A49-A42A-20EF9D51EF49}" ID="1101" />
<Icon Package="{2581426E-BF4F-4A49-A42A-20EF9D51EF49}" ID="4001" />
<TemplateID>Microsoft.CS.WinRT.UAP.BlankApplication</TemplateID>
<TemplateGroupID>WinRT-Managed</TemplateGroupID>
<ProjectType>CSharp</ProjectType>
<SortOrder>1</SortOrder>
public static class GraphicsDeviceHelpers
{
struct TargetInfo
{
public RenderTargetBinding[] Targets;
public int TargetCount;
}
private static int _current;
private static readonly TargetInfo[] _lastTargets = new TargetInfo[10];
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace MonoGameTest.Framework
{

Change Log

3.5.1 Release - 3/30/2016

  • Fixed negative values when pressing up on left thumbstick on Mac.
  • Removed exception and just return empty state when requesting an invalid GamePad index.
  • Fixed texture processing for 64bpp textures.
  • Fixed Texture2D.SaveAsPng on Mac.

Change Log

3.6 Release

  • Optimized ContentReader to decode LZ4 compressed streams directly. #4522
  • [Content Pipeline] Improve model importer #4663
  • Fix Gamepad crash when platform doesn't support the amount #4677
  • Fix #4680 and add tests #4683
  • [Installer] Remove Linux .deb installer #4665
  • Implement vertexStride in VertexBuffer.SetData for OpenGL #4568
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MonoGameTest.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
namespace MonoGameTest.Tests