答案 0 :(得分:4)
目前还没有正式的Mantle SDK,但有一个beta驱动程序(适用于Windows的AMD Catalyst™14.1 Beta驱动程序)。 beta驱动程序包含mantle64.dll和mantleaxl64.dll库。 Dependency walker取消了以下函数定义:
******** mantle64.dll ********
IcdDbgMessage
DllMain
grAllocMemory
grAttachImageViewDescriptors
grAttachMemoryViewDescriptors
grAttachNestedDescriptors
grAttachSamplerDescriptors
grBeginCommandBuffer
grBeginDescriptorSetUpdate
grBindObjectMemory
grClearDescriptorSetSlots
grCmdBeginQuery
grCmdBindDescriptorSet
grCmdBindDynamicMemoryView
grCmdBindIndexData
grCmdBindPipeline
grCmdBindStateObject
grCmdBindTargets
grCmdClearColorImage
grCmdClearColorImageRaw
grCmdClearDepthStencil
grCmdCloneImageData
grCmdCopyImage
grCmdCopyImageToMemory
grCmdCopyMemory
grCmdCopyMemoryToImage
grCmdDbgMarkerBegin
grCmdDbgMarkerEnd
grCmdDispatch
grCmdDispatchIndirect
grCmdDraw
grCmdDrawIndexed
grCmdDrawIndexedIndirect
grCmdDrawIndirect
grCmdEndQuery
grCmdFillMemory
grCmdInitAtomicCounters
grCmdLoadAtomicCounters
grCmdMemoryAtomic
grCmdPrepareImages
grCmdPrepareMemoryRegions
grCmdResetEvent
grCmdResetQueryPool
grCmdResolveImage
grCmdSaveAtomicCounters
grCmdSetEvent
grCmdUpdateMemory
grCmdWriteTimestamp
grCreateColorBlendState
grCreateColorTargetView
grCreateCommandBuffer
grCreateComputePipeline
grCreateDepthStencilState
grCreateDepthStencilView
grCreateDescriptorSet
grCreateDevice
grCreateEvent
grCreateFence
grCreateGraphicsPipeline
grCreateImage
grCreateImageView
grCreateMsaaState
grCreateQueryPool
grCreateQueueSemaphore
grCreateRasterState
grCreateSampler
grCreateShader
grCreateViewportState
grDbgRegisterMsgCallback
grDbgSetDeviceOption
grDbgSetGlobalOption
grDbgSetMessageFilter
grDbgSetObjectTag
grDbgSetValidationLevel
grDbgUnregisterMsgCallback
grDestroyDevice
grDestroyObject
grDeviceWaitIdle
grEndCommandBuffer
grEndDescriptorSetUpdate
grFreeMemory
grGetDeviceQueue
grGetEventStatus
grGetExtensionSupport
grGetFenceStatus
grGetFormatInfo
grGetGpuInfo
grGetImageSubresourceInfo
grGetMemoryHeapCount
grGetMemoryHeapInfo
grGetMultiGpuCompatibility
grGetObjectInfo
grGetQueryPoolResults
grInitAndEnumerateGpus
grLoadPipeline
grMapMemory
grOpenPeerImage
grOpenPeerMemory
grOpenSharedMemory
grOpenSharedQueueSemaphore
grPinSystemMemory
grQueueSetGlobalMemReferences
grQueueSubmit
grQueueWaitIdle
grRemapVirtualMemoryPages
grResetCommandBuffer
grResetEvent
grSetEvent
grSetMemoryPriority
grSignalQueueSemaphore
grStorePipeline
grUnmapMemory
grWaitForFences
grWaitQueueSemaphore
grWsiWinCreatePresentableImage
grWsiWinGetDisplayModeList
grWsiWinGetDisplays
grWsiWinGetScanLine
grWsiWinQueuePresent
grWsiWinReleaseFullscreenOwnership
grWsiWinSetGammaRamp
grWsiWinSetMaxQueuedFrames
grWsiWinTakeFullscreenOwnership
grWsiWinWaitForVerticalBlank
******** mantleaxl64.dll ********
DllMain
grAddPerfExperimentCounter
grAddPerfExperimentTrace
grCmdBeginPerfExperiment
grCmdBindBorderColorPalette
grCmdCopyOcclusionData
grCmdElse
grCmdEndIf
grCmdEndPerfExperiment
grCmdEndWhile
grCmdIf
grCmdInsertTraceMarker
grCmdResetMemoryPredication
grCmdResetOcclusionPredication
grCmdSetMemoryPredication
grCmdSetOcclusionPredication
grCmdWhile
grCreateAdvancedMsaaState
grCreateBorderColorPalette
grCreateFmaskImageView
grCreatePerfExperiment
grFinalizePerfExperiment
grGetExtensionLibraryVersion
grQueueDelay
grUpdateBorderColorPalette
一些假设: 要初始化Mantle,需要调用grCreateDevice。使用渲染管道时,还需要调用grCreateGraphicsPipeline。关闭应用程序时,需要通过grDestroyDevice销毁设备。需要通过grDestroyObject销毁图形管道对象。