- finished sample Primitives (codeplesx issue #531). Problem was a semantic issue in shader. For DX10 and DX11 you have to change POSITION0 o SV_POSITION.

- removed a unnecessary Unmap call after initialing the VertexBffer in DX10 RenderSystem
This commit is contained in:
Glatzemann 2012-09-28 06:42:02 +00:00 committed by Konstantin Koch
parent 3d5b24d6f6
commit d8c0b96121
4 changed files with 5 additions and 4 deletions

View File

@ -49,7 +49,7 @@ namespace ANX.RenderSystem.Windows.DX10
}; };
NativeBuffer = new Dx10.Buffer(device, description); NativeBuffer = new Dx10.Buffer(device, description);
NativeBuffer.Unmap(); //NativeBuffer.Unmap();
} }
#endregion #endregion

View File

@ -62,7 +62,7 @@ namespace ANX.RenderSystem.Windows.DX11
}; };
NativeBuffer = new Dx.Buffer(device, description); NativeBuffer = new Dx.Buffer(device, description);
NativeBuffer.Unmap(); //NativeBuffer.Unmap();
} }
} }
#endregion #endregion

View File

@ -31,4 +31,5 @@ using System.Runtime.InteropServices;
// Build-Nummer // Build-Nummer
// Revision // Revision
// //
[assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyVersion("1.0.1.*")]
[assembly: AssemblyFileVersionAttribute("1.0.1.0")]

View File

@ -14,7 +14,7 @@ struct VertexShaderInput
struct VertexShaderOutput struct VertexShaderOutput
{ {
float4 Position : POSITION0; float4 Position : SV_POSITION;
float4 Color : COLOR0; float4 Color : COLOR0;
}; };