Tabnine Logo
VkFramebufferCreateInfo.pAttachments
Code IndexAdd Tabnine to your IDE (free)

How to use
pAttachments
method
in
org.lwjgl.vulkan.VkFramebufferCreateInfo

Best Java code snippets using org.lwjgl.vulkan.VkFramebufferCreateInfo.pAttachments (Showing top 2 results out of 315)

origin: fynnfluegge/oreon-engine

public VkFrameBuffer(VkDevice device, int width, int height, int layers, 
           LongBuffer pAttachments, long renderPass) {
  
  this.device = device;
  
  VkFramebufferCreateInfo framebufferInfo = VkFramebufferCreateInfo.calloc()
      .sType(VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO)
      .pAttachments(pAttachments)
      .flags(0)
      .height(height)
      .width(width)
      .layers(layers)
      .pNext(0)
      .renderPass(renderPass);
  
  LongBuffer pFramebuffer = memAllocLong(1);
  int err = vkCreateFramebuffer(device, framebufferInfo, null, pFramebuffer);
  
  if (err != VK_SUCCESS) {
    throw new AssertionError("Failed to create framebuffer: " + VkUtil.translateVulkanResult(err));
  }
  
  handle = pFramebuffer.get(0);
  
  framebufferInfo.free();
  memFree(pFramebuffer);
  memFree(pAttachments);
}
 
origin: org.lwjgl/lwjgl-vulkan

flags(flags);
renderPass(renderPass);
pAttachments(pAttachments);
width(width);
height(height);
org.lwjgl.vulkanVkFramebufferCreateInfopAttachments

Javadoc

Returns a LongBuffer view of the data pointed to by the pAttachments field.

Popular methods of VkFramebufferCreateInfo

  • flags
    Sets the specified value to the flags field.
  • height
    Sets the specified value to the height field.
  • layers
    Sets the specified value to the layers field.
  • pNext
    Sets the specified value to the pNext field.
  • renderPass
    Sets the specified value to the renderPass field.
  • sType
    Sets the specified value to the sType field.
  • width
    Sets the specified value to the width field.
  • __checkContainer
  • __checkMalloc
  • __create
  • __member
  • __struct
  • __member,
  • __struct,
  • address,
  • calloc,
  • callocStack,
  • free,
  • mallocStack,
  • nattachmentCount,
  • nflags

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Permission (java.security)
    Legacy security code; do not use.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now