This pull fixes #64 and #70. There are basically 4 changes in here:
Minor update of QualityLevels.
I just moved the ternary operator out of the CreateRenderTarget and CreateDepthStencilSurface functions and hid it behind the if statement to clean up the code slightly.
Modified the PixelShader code to ensure that the swizzle comes at the end. See comments here.
This modifies two regex functions that remove modifiers on constants. It adds a new regex group by changing (r[0-9][\\.wxyz]*) into (r[0-9])([\\.wxyz]*). This allows the swizzle to be in its own group so that we can ensure the swizzle comes last.
Note: since a new group is added all the references to the regex groups need to be updated.
Removes the debug lines in shaders.
If the shader was compiled with debugging on there will be extra lines in it.
I added two new regex statements to remove these debugging lines.
Enable the D3DXASM_DEBUG flag when generating the debug build.
I set the D3DXAssembleShader function to automatically enable the D3DXASM_DEBUG flag when creating a debug build of d3d8to9.
Testing:
This is a pretty small change so it should have no affect on most games. This mainly effects PixelShaders so I tested with games that are sensitive to PixelShaders.
Overview:
This pull fixes #64 and #70. There are basically 4 changes in here:
I just moved the ternary operator out of the
CreateRenderTarget
andCreateDepthStencilSurface
functions and hid it behind the if statement to clean up the code slightly.This modifies two regex functions that remove modifiers on constants. It adds a new regex group by changing
(r[0-9][\\.wxyz]*)
into(r[0-9])([\\.wxyz]*)
. This allows the swizzle to be in its own group so that we can ensure the swizzle comes last.Note: since a new group is added all the references to the regex groups need to be updated.
If the shader was compiled with debugging on there will be extra lines in it.
Example:
I added two new regex statements to remove these debugging lines.
I set the
D3DXAssembleShader
function to automatically enable the D3DXASM_DEBUG flag when creating a debug build of d3d8to9.Testing:
This is a pretty small change so it should have no affect on most games. This mainly effects PixelShaders so I tested with games that are sensitive to PixelShaders.
Tested with: