This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From b5eeab4d2378e95a1ba58ff1aef53cb979ceb98f Mon Sep 17 00:00:00 2001 | |
From: Joshua Ashton <[email protected]> | |
Date: Mon, 25 Nov 2019 03:17:05 +0000 | |
Subject: [PATCH] Fix a use after free in shader editor | |
--- | |
shadereditor/vnodeview.cpp | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
diff --git a/shadereditor/vnodeview.cpp b/shadereditor/vnodeview.cpp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static RGBA HSVAToRGBA(float h, float s, float v, float a) { | |
float hh = std::fmodf(h, 360.0f) / 60.0f; | |
uint32_t i = static_cast<uint32_t>(hh); | |
float ff = hh - float(i); | |
float p = v * (1.0f - s); | |
float q = v * (1.0f - (s * ff)); | |
float t = v * (1.0f - (s * (1.0f - ff))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From d7610d5a65b91a00a2a7003157a7d05016ad95bb Mon Sep 17 00:00:00 2001 | |
From: Joshua Ashton <[email protected]> | |
Date: Tue, 3 Dec 2019 03:52:45 +0000 | |
Subject: [PATCH] [d3d9] Refactor fixed function keys | |
--- | |
src/d3d9/d3d9_device.cpp | 50 ++++++++++----------- | |
src/d3d9/d3d9_fixed_function.cpp | 64 +++++++++++++-------------- | |
src/d3d9/d3d9_fixed_function.h | 75 +++++++++++++++----------------- | |
3 files changed, 91 insertions(+), 98 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D3DDISPLAYMODEEX mode; | |
mode.Size = sizeof(D3DDISPLAYMODEEX); | |
mode.Width = devMode.dmPelsWidth; | |
mode.Height = devMode.dmPelsHeight; | |
mode.RefreshRate = 0; | |
mode.Format = static_cast<D3DFORMAT>(Format); | |
mode.ScanLineOrdering = D3DSCANLINEORDERING_UNKNOWN; | |
if (devMode.dmFields & DM_DISPLAYFLAGS) { | |
mode.ScanLineOrdering = (devMode.dmDisplayFlags & DM_INTERLACED) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp | |
index 9fecbc0c..a55380fc 100644 | |
--- a/src/d3d9/d3d9_device.cpp | |
+++ b/src/d3d9/d3d9_device.cpp | |
@@ -4554,9 +4554,12 @@ namespace dxvk { | |
DecodeD3DCOLOR(D3DCOLOR(state[D3DSAMP_BORDERCOLOR]), key.BorderColor); | |
if (m_d3d9Options.samplerAnisotropy != -1) { | |
- key.MagFilter = D3DTEXF_ANISOTROPIC; | |
- key.MinFilter = D3DTEXF_ANISOTROPIC; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// util_gdi.h | |
#pragma once | |
#include <d3d9.h> | |
namespace dxvk { | |
using NTSTATUS = LONG; | |
// Slightly modified definitions... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From c66337200467d7df4e2499f78b07ab389b17fe0d Mon Sep 17 00:00:00 2001 | |
From: Joshua Ashton <[email protected]> | |
Date: Wed, 23 Jan 2019 00:24:02 +0000 | |
Subject: [PATCH] [d3d9, dx9asm] SHORT2 and UBYTE4 fixup. | |
--- | |
src/d3d9/d3d9_constant_buffer.h | 16 ++- | |
src/d3d9/d3d9_renderer.cpp | 27 ++++- | |
src/d3d9/d3d9_shaders.h | 4 +- | |
src/d3d9/d3d9_vertexdeclaration.h | 4 + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <d3d11_1.h> | |
#include <dxgi.h> | |
#include <stdio.h> | |
#pragma comment(lib, "d3d11.lib") | |
#pragma comment(lib, "dxgi.lib") | |
int main(int argc, char** argv) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char LocalMessageText[281] = ""; | |
u16 LocalMessageLength = 0; | |
void RenderKeyCallback(unsigned int codepoint) | |
{ | |
std::mbstate_t state{}; | |
char utf8[16]; | |
memset(utf8, 0, 16); | |
u16 size = c32rtomb(utf8, codepoint, &state); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,500,300);@-webkit-keyframes rotating{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes rotating{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}[src$='blue.png']{background-image:url(data:image/svg+xml;charset=UTF-8,%3Csvg%20height%3D%2218%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2218%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3Cpath%20fill%3D%22%23009688%22%20d%3D%22M12%202C6.48%202%202%206.48%202%2012s4.48%2010%2010%2010%2010-4.48%2010-10S17.52%202%2012%202zm-2%2015l-5-5%201.41-1.41L10%2014.17l7.59-7.59L19%208l-9%209z%22%2F%3E%3C%2Fsvg%3E)}[src$='red.png']{background-image:url(data:image/svg+xml;charset=UTF-8,%3Csvg%20height%3D%2218%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2218%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3Cpath%20fi |