Commit Graph

275 Commits

Author SHA1 Message Date
Rico Schüller 13893afb8e d3d10: Forward D3D10GetInputSignatureBlob() to d3dcompiler. 2010-10-15 16:17:50 +02:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Matteo Bruni da783ee57d d3d10: Implement D3D10CompileShader, forward to d3dcompiler. 2010-08-30 11:26:28 +02:00
Rico Schüller 1394627fcc d3d10: Forward D3D10CreateBlob to d3dcompiler_43.dll. 2010-08-17 11:42:39 +02:00
Rico Schüller 0d18e35b28 d3d10: Add a stub ID3D10ReflectShader implementation. 2010-07-23 12:43:24 +02:00
Alexandre Julliard b86d515ed6 dlls: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:36 +02:00
Rico Schüller 51c2542631 d3d10: Add data and size check to parse_dxbc(). 2010-07-21 13:23:56 +02:00
Rico Schüller 53ea5de666 d3d10: Move some helper funcs to utils. 2010-07-21 13:23:56 +02:00
Francois Gouget 7d66375fba d3d10/tests: Add a trailing '\n' to ok() calls. 2010-06-22 20:03:32 +02:00
Rico Schüller af93f1ab33 d3d10: Add argument check to ID3D10Effect::GetTechniqueByName(). 2010-05-17 12:42:32 +02:00
Rico Schüller 89b0c84375 d3d10/tests: Add ID3D10Effect::GetVariableBy*() test. 2010-05-06 14:19:03 +02:00
Rico Schüller b0b9897f9f d3d10: Add argument check in ID3D10Effect::GetVariableByName(). 2010-05-06 14:18:55 +02:00
Rico Schüller 337c5d2730 d3d10: Implement ID3D10Effect::GetVariableBySemantic(). 2010-05-06 14:18:50 +02:00
Rico Schüller be3c8db22c d3d10: Parse semantic in parse_fx10_local_variable(). 2010-05-06 14:18:43 +02:00
Rico Schüller 2b17e29183 d3d10: Implement ID3DEffectVariable::GetOutputSignatureElementDesc(). 2010-04-08 17:34:18 +02:00
Rico Schüller 055a0f0d6c d3d10: Implement ID3DEffectVariable::GetInputSignatureElementDesc(). 2010-04-08 17:34:18 +02:00
Rico Schüller bd4bacba1e d3d10: Move the effect shader input signature into a separate struct. 2010-04-08 17:34:17 +02:00
Rico Schüller ce409fe65c d3d10: Fix an ERR message in parse_fx10_body(). 2010-04-08 17:34:17 +02:00
Mikhail Maroukhine 3d62b870a1 d3d10: Fix compiler warnings with flag -Wcast-qual. 2010-03-29 12:12:30 +02:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Alexandre Julliard 6164ce2d82 makefiles: Use the standard C_SRCS variable as the list of test files.
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Rico Schüller 71a96755b2 d3d10: Fix a HeapFree() in d3d10_effect_Release(). 2010-02-16 10:44:12 +01:00
Rico Schüller f816210c21 d3d10/tests: Add effect shader test. 2010-02-12 15:52:25 +01:00
Rico Schüller 893b0b9d40 d3d10/tests: Use a wrapper function for D3D10CreateEffectFromMemory(). 2010-02-12 15:52:25 +01:00
Rico Schüller 37b7de2bfd d3d10: Add D3D10_EOO_PARSED_OBJECT_INDEX in parse_fx10_object(). 2010-01-25 13:25:51 +01:00
Rico Schüller 7a12bf9841 d3d10: Add D3D10_EOO_PARSED_OBJECT in parse_fx10_object(). 2010-01-25 13:25:46 +01:00
Rico Schüller f811cd3e0d d3d10: Implement ID3D10EffectType::IsValid(). 2010-01-25 13:25:41 +01:00
Rico Schüller 104e422b0c d3d10: Implement ID3D10EffectPass::GetPixelShaderDesc(). 2010-01-25 13:25:37 +01:00
Rico Schüller 3961b7b881 d3d10: Implement ID3D10EffectPass::GetGeometryShaderDesc(). 2010-01-25 13:25:32 +01:00
Rico Schüller 07b96240f1 d3d10: Implement ID3D10EffectPass::GetVertexShaderDesc(). 2010-01-25 13:25:27 +01:00
Rico Schüller ef47f8d336 d3d10: Parse shaders in parse_fx10_local_variable(). 2010-01-25 13:25:20 +01:00
Rico Schüller 3b56f259ce d3d10: Add anonymous shaders. 2010-01-25 13:25:05 +01:00
Michael Stefaniuc ea5896861f d3d10: Remove break after return (Smatch). 2010-01-18 14:17:11 +01:00
Michael Stefaniuc 5cc257e5c2 d3d10: Remove superfluous NULL check before HeapFree (Smatch). 2010-01-18 14:17:07 +01:00
Rico Schüller 0b4e6c71b5 d3d10: Parse effect shaders as anonymous shaders. 2010-01-11 11:32:36 -06:00
Rico Schüller 0682453d14 d3d10: Reorder struct d3d10_effect_variable to make the initialisation nicer. 2010-01-11 11:32:25 -06:00
Henri Verbeet efbd38ae84 dxgi: The "unknown0" parameter to DXGID3D10CreateDevice() is a pointer.
Fixes stack corruption in the 64-bit tests. Thanks to Paul Vriens for debugging this.
2009-12-08 12:33:43 +01:00
Henri Verbeet b74642ff0b d3d10: Add a D3D10GetPixelShaderProfile() stub. 2009-11-04 13:07:57 +01:00
Henri Verbeet 274d21a443 d3d10: Add a D3D10GetGeometryShaderProfile() stub. 2009-11-04 13:07:57 +01:00
Henri Verbeet f4f6324248 d3d10: Add a D3D10GetVertexShaderProfile() stub. 2009-11-04 13:07:57 +01:00
Rico Schüller 216ae014ee d3d10/tests: Add constant buffer stride test. 2009-11-03 22:27:49 +01:00
Rico Schüller d390e60320 d3d10/tests: Add GetParentConstantBuffer() checks to effect variable type and class test. 2009-11-03 22:27:46 +01:00
Rico Schüller 51fcacb8a9 d3d10/tests: Add IsValid() checks to effect variable type and class test. 2009-11-03 22:27:43 +01:00
Rico Schüller b8883547af d3d10/tests: Add effect variable type and class test. 2009-11-03 22:27:40 +01:00
Rico Schüller d5ac732ceb d3d10: Initialize *->buffer for all effect variables. 2009-11-03 22:26:51 +01:00
Rico Schüller bd83a874b3 d3d10: Improve constant buffer stride and size_unpacked calculation. 2009-11-03 22:26:45 +01:00
Rico Schüller b188cb132c d3d10: Mark annotation variable as annotation. 2009-10-28 13:15:55 +01:00
Rico Schüller ef07411ebf d3d10: Implement ID3D10EffectVariable::AsShader(). 2009-10-28 13:15:51 +01:00
Rico Schüller 4ef1031699 d3d10: Implement ID3D10EffectVariable::AsSampler(). 2009-10-28 13:15:47 +01:00
Rico Schüller 3db6ec57ff d3d10: Implement ID3D10EffectVariable::AsRasterizer(). 2009-10-28 13:15:42 +01:00
Rico Schüller 48673eec29 d3d10: Implement ID3D10EffectVariable::AsDepthStencil(). 2009-10-28 13:15:38 +01:00
Rico Schüller 53e00e12ba d3d10: Implement ID3D10EffectVariable::AsBlend(). 2009-10-28 13:15:33 +01:00
Rico Schüller b1e56fae01 d3d10: Implement ID3D10EffectVariable::AsConstantBuffer(). 2009-10-28 13:15:28 +01:00
Rico Schüller 7b91b36d93 d3d10: Implement ID3D10EffectVariable::AsDepthStencilView(). 2009-10-28 13:15:23 +01:00
Rico Schüller 31383cad51 d3d10: Implement ID3D10EffectVariable::AsRenderTargetView(). 2009-10-28 13:15:18 +01:00
Rico Schüller fee2d53204 d3d10: Implement ID3D10EffectVariable::AsShaderResource(). 2009-10-28 13:15:13 +01:00
Rico Schüller 2c3674d6ce d3d10: Implement ID3D10EffectVariable::AsString(). 2009-10-28 13:15:08 +01:00
Rico Schüller 607a643bcc d3d10: Fix a HeapFree() in d3d10_effect_Release(). 2009-10-28 13:15:02 +01:00
Rico Schüller 8c090941bb d3d10: Improve set_variable_vtbl(). 2009-10-27 11:28:56 +01:00
Rico Schüller da5cd60008 d3d10: Add ID3D10EffectShaderVariableVtbl. 2009-10-27 11:28:50 +01:00
Rico Schüller 5fe60e8bdb d3d10: Add ID3D10EffectDepthStencilViewVariableVtbl. 2009-10-27 11:28:41 +01:00
Rico Schüller baa3d77fde d3d10: Add ID3D10EffectRenderTargetViewVariableVtbl. 2009-10-27 11:28:28 +01:00
Rico Schüller d070923e69 d3d10: Add ID3D10EffectShaderResourceVariableVtbl. 2009-10-27 11:28:22 +01:00
Rico Schüller d7ad962854 d3d10: Add ID3D10EffectStringVariableVtbl. 2009-10-27 11:28:15 +01:00
Rico Schüller 4856334785 d3d10: Add ID3D10EffectSamplerVariableVtbl. 2009-10-27 11:28:08 +01:00
Rico Schüller 94d743c575 d3d10: Add ID3D10EffectRasterizerVariableVtbl. 2009-10-27 11:28:03 +01:00
Rico Schüller 3000abae9b d3d10: Add ID3D10EffectDepthStencilVariableVtbl. 2009-10-27 11:27:56 +01:00
Rico Schüller 1b0404f69e d3d10: Add ID3D10EffectBlendVariableVtbl. 2009-10-27 11:27:50 +01:00
Rico Schüller b66733aabb d3d10: Improve ID3D10Effect::GetVariableByName(). 2009-10-27 11:27:43 +01:00
Rico Schüller 135966f22e d3d10: Implement ID3D10Effect::GetVariableByIndex(). 2009-10-27 11:27:24 +01:00
Rico Schüller b55641f14a d3d10: Parse local_variables. 2009-10-26 11:43:11 +01:00
Rico Schüller 7e1ad91ea4 d3d10: Improve parse_fx10_type(). 2009-10-26 11:43:04 +01:00
Rico Schüller 22d8fc081a d3d10: Add matrix column major parsing. 2009-10-26 11:42:58 +01:00
Rico Schüller 0da0fa7e4d d3d10: Improve d3d10_variable_type(). 2009-10-26 11:42:52 +01:00
Rico Schüller c1265cfd12 d3d10/tests: Add ID3D10EffectVariable::GetElement() test. 2009-10-22 15:46:48 +02:00
Rico Schüller bc3c1b8b7f d3d10/tests: Add variable member test. 2009-10-22 15:46:37 +02:00
Rico Schüller 083d5ced8e d3d10: Implement ID3D10EffectConstantBuffer::GetParentConstantBuffer(). 2009-10-22 15:45:56 +02:00
Rico Schüller 8e2e7eb1e9 d3d10: Implement ID3D10EffectVariable::GetElement(). 2009-10-22 15:45:51 +02:00
Henri Verbeet b8668a9ce5 d3d10: Explicitly handle D3D10_SVC_STRUCT in set_variable_vtbl(). 2009-10-12 12:36:10 +02:00
Rico Schüller 54592ea374 d3d10/tests: Add variable type test. 2009-10-07 14:28:21 +02:00
Rico Schüller b277b114aa d3d10/tests: Add constant buffer type test. 2009-10-07 14:28:12 +02:00
Rico Schüller 6f2ad69718 d3d10: Remove double declared variable in parse_fx10_variable(). 2009-10-01 14:34:42 +02:00
Rico Schüller 7b520e1f31 d3d10: Implement ID3D10EffectVariable::GetMemberBySemantic(). 2009-10-01 14:34:35 +02:00
Rico Schüller 9fdd548d2e d3d10: Implement ID3D10EffectVariable::GetMemberByName(). 2009-10-01 14:34:30 +02:00
Rico Schüller 263e29e61e d3d10: Implement ID3D10EffectVariable::GetMemberByIndex(). 2009-10-01 14:34:23 +02:00
Rico Schüller 6bb92fe109 d3d10: Implement ID3D10EffectType::GetMemberTypeBySemantic(). 2009-10-01 14:34:17 +02:00
Rico Schüller 57707fd277 d3d10: Implement ID3D10EffectType::GetMemberTypeByName(). 2009-10-01 14:34:07 +02:00
Rico Schüller 78b41be882 d3d10: Implement ID3D10EffectType::GetMemberTypeByIndex(). 2009-10-01 14:33:59 +02:00
Rico Schüller abe3737066 d3d10: Add null_type. 2009-10-01 14:33:53 +02:00
Rico Schüller ffa72d7305 d3d10: Improve ID3D10EffectType::GetMemberName(). 2009-10-01 14:33:41 +02:00
Rico Schüller 73b5e3ddad d3d10: Implement ID3D10EffectType::GetMemberSemantic(). 2009-10-01 14:33:28 +02:00
Rico Schüller 90fadf84d9 d3d10: Implement ID3D10EffectType::GetMemberName(). 2009-09-30 15:43:04 +02:00
Rico Schüller 3eb2d779e4 d3d10: Forward ID3D10EffectVariable functions from ID3D10EffectConstantBuffer to ID3D10EffectVariable. 2009-09-30 15:42:50 +02:00
Rico Schüller df9e1013d5 d3d10: Make the constant buffer a variable. 2009-09-30 15:42:34 +02:00
Rico Schüller 10a4516e50 d3d10: Parse constant buffer type. 2009-09-30 15:42:22 +02:00
Rico Schüller 835dedc964 d3d10: Rename ConstantBuffer's variable to member. 2009-09-30 15:42:04 +02:00
Henri Verbeet 891d7629fd d3d10: Mark internal symbols hidden. 2009-09-18 08:55:40 -05:00
Rico Schüller f1d4ab3224 d3d10: Implement ID3D10EffectVariable::GetDesc(). 2009-09-11 13:24:08 +02:00
Rico Schüller 3517d75f43 d3d10: Add variable semantic parsing. 2009-09-11 13:24:03 +02:00
Henri Verbeet ff5991ce42 d3d10: Move effect variable vtable initialization to parse_fx10_variable_head(). 2009-09-11 12:09:06 +02:00
Henri Verbeet b0c4620802 d3d10: Use the shader variable class/type debug functions in parse_fx10_type().
This got lost by 7c156c5753.
2009-09-11 12:08:57 +02:00
Rico Schüller f493e56d4d d3d10: Implement ID3D10EffectConstantBuffer::GetAnnotationByName(). 2009-09-10 12:20:18 +02:00
Rico Schüller 96c2b578fe d3d10: Implement ID3D10EffectVariable::GetAnnotationByName(). 2009-09-10 12:20:11 +02:00
Rico Schüller 15a0274fe4 d3d10: Implement ID3D10EffectPass::GetAnnotationByName(). 2009-09-10 12:20:05 +02:00
Rico Schüller 4e1950b706 d3d10: Implement ID3D10EffectTechnique::GetAnnotationByName(). 2009-09-10 12:19:59 +02:00
Rico Schüller e6af0472b3 d3d10: Implement ID3D10EffectConstantBuffer::GetAnnotationByIndex(). 2009-09-10 12:19:51 +02:00
Rico Schüller 4d91fba96f d3d10: Implement ID3D10EffectVariable::GetAnnotationByIndex(). 2009-09-10 12:19:44 +02:00
Rico Schüller c2f5c3235c d3d10: Implement ID3D10EffectPass::GetAnnotationByIndex(). 2009-09-10 12:19:36 +02:00
Rico Schüller d12dcbe852 d3d10: Implement ID3D10EffectTechnique::GetAnnotationByIndex(). 2009-09-10 12:19:28 +02:00
Rico Schüller f63f6fc0c3 d3d10: Implement annotation parsing. 2009-09-10 12:19:19 +02:00
Rico Schüller 7c156c5753 d3d10: Reorder some functions. 2009-09-10 12:18:58 +02:00
Henri Verbeet 508635ac4c d3d10: Implement ID3D10EffectVariable::AsMatrix(). 2009-09-10 10:50:10 +02:00
Henri Verbeet 58fcb06c07 d3d10: Implement ID3D10EffectVariable::AsVector(). 2009-09-10 10:50:04 +02:00
Henri Verbeet fbbbdc09a5 d3d10: Implement ID3D10EffectVariable::AsScalar(). 2009-09-10 10:49:59 +02:00
Henri Verbeet ecc6a9519f d3d10: Add a debug function for D3D10_SHADER_VARIABLE_TYPE. 2009-09-10 10:49:42 +02:00
Henri Verbeet 7f617f3d2e d3d10: Add a debug function for D3D10_SHADER_VARIABLE_CLASS. 2009-09-10 10:49:36 +02:00
Henri Verbeet 8de9fea564 d3d10: Use debugstr_a()/debugstr_an() to trace external strings. 2009-09-09 12:06:31 +02:00
Henri Verbeet 9882788ac5 d3d10: Implement ID3D10EffectType::GetDesc(). 2009-09-09 12:06:10 +02:00
Henri Verbeet 559351ea9c d3d10: Implement ID3D10EffectVariable::GetType(). 2009-09-09 12:06:03 +02:00
Henri Verbeet 7f886a2b95 d3d10: Add initial support for parsing structures. 2009-09-09 12:05:53 +02:00
Henri Verbeet a2db7e2b77 d3d10: Parse an effect type's basetype and class. 2009-09-09 12:05:46 +02:00
Rico Schüller 3f99f4bf90 d3d10: Add initial type parsing code. 2009-09-09 12:05:34 +02:00
Henri Verbeet 400ff9f72d d3d10: Implement IsValid() for a few interfaces. 2009-09-08 13:05:52 +02:00
Rico Schüller 45c27e12d4 d3d10: Add argument check in ID3D10EffectPass::GetDesc. 2009-08-31 16:07:10 +02:00
Rico Schüller 247b867952 d3d10: Add argument check in ID3D10EffectTechnique::GetDesc. 2009-08-31 16:07:06 +02:00
Rico Schüller 78741d2717 d3d10: Add null objects for technique, pass, local_buffer and variable. 2009-08-31 16:06:42 +02:00
Rico Schüller 739759bf8b d3d10: Parse variable flag. 2009-08-27 13:36:13 +02:00
Rico Schüller 09e258a186 d3d10: Identify some more unknowns in parse_fx10. 2009-08-27 13:36:10 +02:00
Rico Schüller 48f66efbfe d3d10: Implement GetConstantBufferByIndex. 2009-08-21 11:59:35 +02:00
Rico Schüller 2381c0e560 d3d10: Implement GetConstantBufferByName. 2009-08-21 11:59:30 +02:00
Rico Schüller 91c00c175b d3d10: Add ID3D10EffectConstantBufferVtbl. 2009-08-21 11:59:22 +02:00
Rico Schüller 033eb8d7cf d3d10: Add annotation skipping. 2009-08-21 11:56:15 +02:00
Henri Verbeet a5d9536542 d3d10: Implement ID3D10Effect::GetVariableByName(). 2009-07-15 13:25:35 +02:00
Henri Verbeet f58405f647 d3d10: Parse effect variables. 2009-07-15 13:25:27 +02:00
Henri Verbeet ddc948b974 d3d10: Do all effect object parsing in parse_fx10_object(). 2009-07-15 13:25:21 +02:00
Rico Schüller 2dd1b37922 d3d10: Rename struct d3d10_effect_variable to struct d3d10_effect_object.
The name d3d10_effect_variable is somewhat misleading, since these
aren't actually effect variables as returned by e.g.
ID3D10Effect::GetVariableByName(), but effect objects as referenced by
effect passes.
2009-07-15 13:25:15 +02:00
Henri Verbeet b4da7ebd3e d3d10: Marge parse_fx10_pass() and parse_fx10_pass_index(). 2009-07-14 12:21:56 +02:00
Henri Verbeet c481e0a7d4 d3d10: Merge parse_fx10_technique() and parse_fx10_technique_index(). 2009-07-14 12:21:51 +02:00
Henri Verbeet 34ab5431e8 d3d10: Parse local buffer names. 2009-07-14 12:21:46 +02:00
Henri Verbeet 710b57a5aa d3d10: Parse local buffers. 2009-07-14 12:21:32 +02:00
Rico Schüller 3838f4b21a d3d10: Replace a few more unknown in parse_fx10. 2009-06-01 16:16:06 +02:00
Rico Schüller 99a4287f5d d3d10: Improve parse_fx10. 2009-06-01 16:16:06 +02:00
Henri Verbeet 29bd889cf8 d3d10: Implement ID3D10EffectPass::Apply(). 2009-03-06 12:38:34 +01:00
Henri Verbeet 52b24d2284 d3d10: Create shaders. 2009-03-06 12:38:34 +01:00
Henri Verbeet 449be2d316 d3d10: Implement ID3D10Effect::GetDevice(). 2009-03-06 12:38:34 +01:00
Henri Verbeet 28c595e3a4 d3d10: Implement ID3D10EffectPass::GetDesc(). 2009-03-03 12:37:00 +01:00
Henri Verbeet 7c03f2c21b d3d10: Store the shader's input signature. 2009-03-03 12:36:55 +01:00
Henri Verbeet 78afd8736c d3d10: Implement ID3D10EffectTechnique::GetDesc(). 2009-03-03 12:36:48 +01:00
Henri Verbeet 26b24ed8a5 d3d10: Simplify DXBC chunk handlers. 2009-03-03 12:36:43 +01:00
Henri Verbeet 152c9637ac d3d10: Actually use the parse_fx10() return value. 2009-03-03 12:36:37 +01:00