{"id":5509,"date":"2014-03-30T23:24:38","date_gmt":"2014-03-30T23:24:38","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/fx-file-will-not-compile-in-vs2010-collection-of-common-programming-errors\/"},"modified":"2014-03-30T23:24:38","modified_gmt":"2014-03-30T23:24:38","slug":"fx-file-will-not-compile-in-vs2010-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/fx-file-will-not-compile-in-vs2010-collection-of-common-programming-errors\/","title":{"rendered":".fx file will not compile in VS2010-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to load an example project and the <code>.fx<\/code> file throws a compile error at runtime.<\/p>\n<pre><code>x3206 'mul' implicit truncation\n<\/code><\/pre>\n<p>it&#8217;s for the line:<\/p>\n<pre><code>float3 normal = normalize(mul(IN.normal, matWorld));\n<\/code><\/pre>\n<p>I&#8217;m also getting:<\/p>\n<pre><code>x3035  global variable implicitly constant @\n\nvGravity = mul(vGravity, matWorld);\n<\/code><\/pre>\n<p>This is a downloaded project so I assume the issue is with conversion. For reference the DL location is: http:\/\/www.xbdev.net\/directx3dx\/specialX\/Fur\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to load an example project and the .fx file throws a compile error at runtime. x3206 &#8216;mul&#8217; implicit truncation it&#8217;s for the line: float3 normal = normalize(mul(IN.normal, matWorld)); I&#8217;m also getting: x3035 global variable implicitly constant @ vGravity = mul(vGravity, matWorld); This is a downloaded project so I assume the issue is with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5509","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5509"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5509\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}