favreau / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

BulletSoftBodySolvers_DX11 fails to link when using DX DLLs #494

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I added BulletSoftBodySolvers_DX11 to a project which dynamically loads the D3D 
dlls. Compilation failed to link due to missing the  D3DX11CompileFromMemory 
function symbol which is used in DXFunctions::compileComputeShaderFromString.

I've got it working by passing an optional pointer to the 
D3DX11CompileFromMemory function through to DXFunctions. See attached patch.

A nicer solution might be to pass around something like the DX11SupportHelper 
that's currently unused in Demos\DX11ClothDemo\btDirectComputeSupport.h in case 
more dynamic function calls are needed.

Original issue reported on code.google.com by cameron....@gmail.com on 18 Mar 2011 at 2:05

Attachments:

GoogleCodeExporter commented 9 years ago
Your patch has been applied in latest trunk:
http://code.google.com/p/bullet/source/detail?r=2376

If someone wants to add improved dynamic function call support, we can accept 
their patches.

Thanks for the contribution!

Original comment by erwin.coumans on 7 Apr 2011 at 4:21