- fix numerous warnings
- make some variables unsigned
- remove redundant code and header inclusions
- make code more compact in lots of cases
Committing some additional changes by myself:
- additional header cleanups
- cleanup DX11 initialization/shutdown process (hinted at by avindra)
- Remove the cgD3D9 stuff from Externals since it's no longer needed
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5903 8ced0084-cf51-0410-be5f-012b33b47a6e
For a typical OS X app, one only needs to specify the SDK version and the
target OS version range.
Because we use OpenCL which is new in 10.6, however, we must be somewhat
more verbose in order to make use of the forward compatibility facilities.
Unfortunately, the critical bit that is required to have binaries built
on 10.6 work on 10.5, namely disabling the new compact __LINKEDIT format,
causes stack alignment crashes at emulation time on 10.6, so for now
Leopard users still have to build Dolphin themselves.
Hopefully, this stack alignment problem will turn out to be coincident
with lingering alignment issues.
Include the OS X version of the Cg framework in Externals as with the
Windows one. The header files appear to be the same in the Windows and the
OS X builds of the February 2.2 Cg toolkit, although they are differently
munged by what appears to be some automatic process, so no new duplicates.
Any upgrades to the Cg libraries will of course need to be done in sync.
I do hope that Sonicadvance1's GLSL work will enable us to get rid of Cg.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5893 8ced0084-cf51-0410-be5f-012b33b47a6e
enable newline normalization
get revision number via `hg svn info` for svnrev.h
ignore incremental/generated binary files (windows/VS at least)
leave a comment if some files need native eol set in svnprops
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5637 8ced0084-cf51-0410-be5f-012b33b47a6e
Release Notes:(COPY AND PASTED)
The October 2009 version of Cg 2.2 contains the following improvements:
Allow compiler options in effect compile statements
e.g. VertexProgram = compile vp40 "-po PosInv=1" shader();
Better performance when running on multicore CPUs
Choosing the "latest" profile is now deferred until effect validation
Improved the inverse matrix computation in cgGLSetStateMatrixParameter
Better memory behavior when a program is repeatedly recompiled
Fixed an issue when using PSIZE semantic with ps_3_0 and ps_4_0 profiles
cgCombinePrograms now works with CG_OBJECT programs
cgGetNextProgram was always returning 0
Fixed a problem with effect parameters and cgGLGetTextureEnum
Allow comments prior to the shader version in D3D asm blocks of an effect
HLSL10: Mark globally scoped temporaries 'static' to keep them out of constant
buffers
HLSL10: Allow any semantic for varyings provided the semantics match
between stages
HLSL10: Fix handling of TEXUNITn semantic
HLSL10: Added support for arrays of samplers
HLSL10: Empty structs for uniform parameters crashed the D3D compiler
Fixed a problem when connecting parameters of type string
Corrected issues in the fp20 profile on Solaris
Now using MesaGLUT-7.5 for GLUT on Windows
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4648 8ced0084-cf51-0410-be5f-012b33b47a6e