zoukankan      html  css  js  c++  java
  • cg 到hlsl的转换

    http://msdn.microsoft.com/en-us/library/windows/desktop/ff471376(v=vs.85).aspx

    http://gamedev.stackexchange.com/questions/28647/cg-cgfx-to-glsl

     CullFaceEnable(Ture False) &&CullFace (Back Front) D3D9的这两个参数

    对应 CullMode 这个一个D3D11 (NONE FRONT BACK)

    Rasterizer state

    d3d9            d3d11

    DepthMask (ture false)   DepthWriteMask(_zero/off _all/on)

    StencilOp = int3(sfail, dpfail, dppass)

    set reference

    http://msdn.microsoft.com/en-us/library/windows/desktop/ff476463(v=vs.85).aspx

     

    void OMSetDepthStencilState(
      [in]  ID3D11DepthStencilState *pDepthStencilState,
      [in]  UINT StencilRef
    );


    http://msdn.microsoft.com/en-us/library/windows/desktop/ff476122(v=vs.85).aspx

    ColorMask(r,g,b,a)
    http://http.developer.nvidia.com/Cg/ColorMask.html
    http://msdn.microsoft.com/en-us/library/windows/desktop/ff476462(v=vs.85).aspx

    setblendstate(blendstate,blendfactor,samplemask)

    http://http.developer.nvidia.com/Cg/StencilOp.html
  • 相关阅读:
    bind函数
    尾置返回类型
    lambda表达式
    C++谓词
    capacity和size
    容器操作可能会使迭代器失效
    特殊的forward_list操作
    向顺序容器添加元素
    swap与assign
    迭代器
  • 原文地址:https://www.cnblogs.com/minggoddess/p/3678080.html
Copyright © 2011-2022 走看看