Examples of GetBufferSize()


Examples of d3d11.core.ID3D10Blob.GetBufferSize()

                  ppCode,
                  ppErrors);
      if(result != 0) {
        ID3D10Blob errors = ppErrors.get().getNativeObject(ID3D10Blob.class);
        if(errors != null) {
          Pointer<Byte> pMessage = allocateArray(Byte.class, errors.GetBufferSize());
          errors.GetBufferPointer().copyBytesTo(pMessage, errors.GetBufferSize());
         
          errors.Release();
          throw new D3DCompilerException(pMessage.getCString(), result);
        }
View Full Code Here

Examples of d3d11.core.ID3D10Blob.GetBufferSize()

                  ppErrors);
      if(result != 0) {
        ID3D10Blob errors = ppErrors.get().getNativeObject(ID3D10Blob.class);
        if(errors != null) {
          Pointer<Byte> pMessage = allocateArray(Byte.class, errors.GetBufferSize());
          errors.GetBufferPointer().copyBytesTo(pMessage, errors.GetBufferSize());
         
          errors.Release();
          throw new D3DCompilerException(pMessage.getCString(), result);
        }
      }
View Full Code Here

Examples of d3d11.core.ID3D10Blob.GetBufferSize()

    int result = D3DCompile(pointerToCString(vertexShader), vertexShader.length(), null, null, null, pointerToCString("VS"), pointerToCString("vs_5_0"), 0, 0, ppCode, ppErrorMsgs);
    assertEquals(0, result);
   
    ID3D10Blob vsCode = ppCode.get().getNativeObject(ID3D10Blob.class);
    Pointer<Pointer<ID3D11VertexShader>> ppVS = allocatePointer(ID3D11VertexShader.class);
    result = device.CreateVertexShader(vsCode.GetBufferPointer(), (int)vsCode.GetBufferSize(), null, ppVS);
    assertEquals(0, result);
   
    ID3D11VertexShader vs = ppVS.get().getNativeObject(ID3D11VertexShader.class);
    result = vs.Release();
    assertEquals(0, result);
View Full Code Here

Examples of d3d11.core.ID3D10Blob.GetBufferSize()

    int result = D3DCompile(pointerToCString(vertexShader), vertexShader.length(), null, null, pointerTo(handler), pointerToCString("VS"), pointerToCString("vs_5_0"), 0, 0, ppCode, ppErrorMsgs);
    assertEquals(0, result);

    ID3D10Blob vsCode = ppCode.get().getNativeObject(ID3D10Blob.class);
    Pointer<Pointer<ID3D11VertexShader>> ppVS = allocatePointer(ID3D11VertexShader.class);
    result = device.CreateVertexShader(vsCode.GetBufferPointer(), (int)vsCode.GetBufferSize(), null, ppVS);
    assertEquals(0, result);

    ID3D11VertexShader vs = ppVS.get().getNativeObject(ID3D11VertexShader.class);
    result = vs.Release();
    assertEquals(0, result);
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.