Examples of pSysMem()


Examples of d3d11.resources.D3D11_SUBRESOURCE_DATA.pSysMem()

                               D3D11_USAGE_DEFAULT,
                               D3D11_CPU_ACCESS_NONE,
                               0,
                               (int)(9 * sizeOf(Float.class)));
    D3D11_SUBRESOURCE_DATA initData = new D3D11_SUBRESOURCE_DATA();
    initData.pSysMem(pointerToFloats(0.0f, 1.0f, 0.5f, 1f, -0.5f, 0.5f, -0.5f, -0.5f, 0.5f));
    initData.SysMemPitch(0).SysMemSlicePitch(0);
    final ID3D11Buffer vertexBuffer = device.CreateBuffer(bufferDesc, initData);
    delete(initData)// Delete data of regain memory
   
    // Create constant buffer (size must be multiple of 16)
View Full Code Here

Examples of d3d11.resources.D3D11_SUBRESOURCE_DATA.pSysMem()

                               D3D11_USAGE_DEFAULT,
                               D3D11_CPU_ACCESS_NONE,
                               0,
                               (int)(9 * sizeOf(Float.class)));
    D3D11_SUBRESOURCE_DATA initData = new D3D11_SUBRESOURCE_DATA();
    initData.pSysMem(pointerToFloats(0.0f, 1.0f, 0.5f, 1f, -0.5f, 0.5f, -0.5f, -0.5f, 0.5f));
    initData.SysMemPitch(0).SysMemSlicePitch(0);
    final ID3D11Buffer vertexBuffer = device.CreateBuffer(bufferDesc, initData);
   
    JNIEnv env = JAWTUtils.getJNIEnv();
    JAWT jawt = JAWTUtils.getJAWT(env);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.